diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-10-28 01:16:13 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-10-28 01:16:13 +0900 |
| commit | d35b02fa236ce825e7d96a8d85d710dccc62bdb8 (patch) | |
| tree | e507e34c665a581ae20eb5f7ba21e2e23a593d24 /.github/workflows | |
| parent | fix test (diff) | |
| download | sharkey-d35b02fa236ce825e7d96a8d85d710dccc62bdb8.tar.gz sharkey-d35b02fa236ce825e7d96a8d85d710dccc62bdb8.tar.bz2 sharkey-d35b02fa236ce825e7d96a8d85d710dccc62bdb8.zip | |
Improve CI
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/lint.yml | 21 | ||||
| -rw-r--r-- | .github/workflows/test.yml (renamed from .github/workflows/nodejs.yml) | 46 |
2 files changed, 58 insertions, 9 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000000..0b3bbc186f --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,21 @@ +name: Lint + +on: + push: + branches: + - master + - develop + pull_request: + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + submodules: true + - uses: actions/setup-node@v1 + with: + node-version: 12.x + - run: yarn install + - run: yarn lint diff --git a/.github/workflows/nodejs.yml b/.github/workflows/test.yml index a91572ad78..045d209802 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,5 @@ -name: Node.js CI +name: Test + on: push: branches: @@ -7,12 +8,12 @@ on: pull_request: jobs: - build_and_test: + mocha: runs-on: ubuntu-latest strategy: matrix: - node-version: [14.x, 16.x] + node-version: [16.x] services: postgres: @@ -44,16 +45,43 @@ jobs: - name: Build run: yarn build - name: Test - run: yarn test + run: yarn mocha - lint: + e2e: runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [16.x] + + services: + postgres: + image: postgres:12.2-alpine + ports: + - 54312:5432 + env: + POSTGRES_DB: test-misskey + POSTGRES_HOST_AUTH_METHOD: trust + redis: + image: redis:4.0-alpine + ports: + - 56312:6379 + steps: - uses: actions/checkout@v2 with: submodules: true - - uses: actions/setup-node@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 with: - node-version: 12.x - - run: yarn install - - run: yarn lint + node-version: ${{ matrix.node-version }} + - name: Install dependencies + run: yarn install + - name: Check yarn.lock + run: git diff --exit-code yarn.lock + - name: Copy Configure + run: cp test/test.yml .config + - name: Build + run: yarn build + - name: Test + run: yarn e2e |