Skip to content

Commit

Permalink
Chore: Split linting and tests tasks on Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
SBoudrias committed Sep 25, 2023
1 parent 2f9ce21 commit 677e6db
Showing 1 changed file with 25 additions and 12 deletions.
37 changes: 25 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
name: Node
name: CI
on: [push, pull_request]
jobs:
build:
Linting:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version:
- 20
- 18
- 16
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
Expand All @@ -18,8 +11,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

node-version: 20
- name: yarn install
run: yarn install --immutable --immutable-cache

Expand All @@ -32,11 +24,32 @@ jobs:
git diff --exit-code -- . :^.yarn
- name: Typescript
run: yarn turbo tsc

Tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version:
- 20
- 18
- 16
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: yarn install
run: yarn install --immutable --immutable-cache

- name: Test packages
run: yarn vitest --run --coverage
- name: Integration tests
run: yarn node --test integration/

- name: Upload code coverage
uses: codecov/codecov-action@v3
with:
Expand Down

0 comments on commit 677e6db

Please sign in to comment.