Skip to content

Commit

Permalink
Split CT into three steps (#8)
Browse files Browse the repository at this point in the history
Spliced the continuous testing step into three separated steps.

Added the yarn install as a needed step that downloads the dependencies
(just to stop it from spamming three yarn installs at the same time).

Closes #7
  • Loading branch information
Bullrich authored Jul 6, 2023
1 parent ff865fd commit 33bf2e7
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 6 deletions.
34 changes: 28 additions & 6 deletions .github/workflows/javascript-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit 33bf2e7

Please sign in to comment.