From 677e6db6673780e48a5c26b67a4d94ec45955f70 Mon Sep 17 00:00:00 2001 From: Simon Boudrias Date: Mon, 25 Sep 2023 18:08:56 -0400 Subject: [PATCH] Chore: Split linting and tests tasks on Github actions --- .github/workflows/main.yml | 37 +++++++++++++++++++++++++------------ 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 36c3d83778..2278e0cb43 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 }} @@ -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 @@ -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: