From 56bd9261a540879b58b80b790749351506df51c9 Mon Sep 17 00:00:00 2001 From: Marco Roth Date: Wed, 7 Feb 2024 23:45:38 +0100 Subject: [PATCH] Test Node 18, 19, 20, 21 in CI And move Lint to seperate GitHub Action --- .github/workflows/ci.yml | 16 +++++++++------- .github/workflows/lint.yml | 22 ++++++++++++++++++++++ 2 files changed, 31 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5c02c284..db82ebcc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,15 +3,20 @@ name: CI on: [push, pull_request] jobs: - build: - + test: + name: Test runs-on: ubuntu-latest + strategy: + matrix: + node: [18, 19, 20, 21] steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + + - name: Setup Node v${{ matrix.node }} + uses: actions/setup-node@v3 with: - node-version: 16 + node-version: ${{ matrix.node }} cache: 'yarn' - name: Install Dependencies @@ -19,6 +24,3 @@ jobs: - name: Test run: yarn test - - - name: Lint - run: yarn lint diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000..74e31691 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,22 @@ +name: Lint + +on: [push, pull_request] + +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-node@v3 + with: + node-version: 21 + cache: 'yarn' + + - name: Install Dependencies + run: yarn install --frozen-lockfile + + - name: Lint + run: yarn lint