Skip to content

Commit

Permalink
Run typecheck just once but on the correct node version
Browse files Browse the repository at this point in the history
  • Loading branch information
tgandrews committed May 22, 2022
1 parent 6da170a commit 2c6f6f5
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- name: Read .nvmrc
run: echo "##[set-output name=nvmrc;]$(cat .nvmrc)"
id: nvm
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: ${{ steps.nvm.outputs.nvmrc }}
- run: npm i -g npm@8
- run: npm ci
- run: npm run typecheck
- run: npm run format -- --check
test:
runs-on: ubuntu-latest
Expand All @@ -30,7 +38,6 @@ jobs:
node-version: ${{ matrix.node }}
- run: npm i -g npm@8
- run: npm ci
- run: npm run typecheck
- run: npm run test -- --coverage
- name: coverage
uses: coverallsapp/github-action@master
Expand Down

0 comments on commit 2c6f6f5

Please sign in to comment.