Skip to content

Commit

Permalink
Update GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
remcohaszing committed Oct 25, 2021
1 parent 8722459 commit 8bad0d2
Showing 1 changed file with 24 additions and 30 deletions.
54 changes: 24 additions & 30 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,57 +1,51 @@
on:
- pull_request
- push
pull_request:
push:
branches: [main]
tags: ['*']

jobs:
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
- name: ESLint
run: |
yarn --frozen-lockfile
yarn eslint .
node-version: 16
- run: yarn --frozen-lockfile
- run: yarn eslint .

jest:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12, 14]
node-version: [12, 14, 16]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Test
run: |
yarn --frozen-lockfile
yarn test --coverage
- uses: codecov/codecov-action@v1
if: ${{ matrix.node-version == 14 }}
- run: yarn --frozen-lockfile
- run: yarn test --coverage
- uses: codecov/codecov-action@v2
if: ${{ matrix.node-version == 16 }}

prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 14
- name: Prettier
run: |
yarn --frozen-lockfile
yarn prettier .
node-version: 16
- run: yarn --frozen-lockfile
- run: yarn prettier .

tsc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
- name: TSC
run: |
yarn --frozen-lockfile
yarn tsc
node-version: 16
- run: yarn --frozen-lockfile
- run: yarn tsc

0 comments on commit 8bad0d2

Please sign in to comment.