diff --git a/.github/workflows/javascript-test.yml b/.github/workflows/javascript-test.yml index d8783e6..19045fa 100644 --- a/.github/workflows/javascript-test.yml +++ b/.github/workflows/javascript-test.yml @@ -3,6 +3,32 @@ name: Continuous testing on: [pull_request] jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Use node 18 + uses: actions/setup-node@v3 + with: + node-version: 18 + - uses: c-hive/gha-yarn-cache@v2 + - name: Install dependencies + run: yarn install --frozen-lockfile + - run: yarn run lint + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Use node 18 + uses: actions/setup-node@v3 + with: + node-version: 18 + - uses: c-hive/gha-yarn-cache@v2 + - name: Install dependencies + run: yarn install --frozen-lockfile + - run: yarn run build + test: runs-on: ubuntu-latest steps: @@ -11,11 +37,7 @@ jobs: uses: actions/setup-node@v3 with: node-version: 18 + - uses: c-hive/gha-yarn-cache@v2 - name: Install dependencies run: yarn install --frozen-lockfile - - name: Run lint - run: yarn lint - - name: Build the project - run: yarn build - - name: Run tests - run: yarn test + - run: yarn run test diff --git a/README.md b/README.md index 53c6d0c..8470d9b 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,6 @@ [![GitHub Issue Sync](https://github.com/paritytech/review-bot/actions/workflows/github-issue-sync.yml/badge.svg)](https://github.com/paritytech/review-bot/actions/workflows/github-issue-sync.yml) +[![Publish package to GitHub Packages](https://github.com/paritytech/review-bot/actions/workflows/publish.yml/badge.svg?branch=main)](https://github.com/paritytech/review-bot/actions/workflows/publish.yml) + Have custom review rules for PRs with auto assignment.