Skip to content

Commit

Permalink
Test Node 18, 19, 20, 21 in CI
Browse files Browse the repository at this point in the history
And move Lint to seperate GitHub Action
  • Loading branch information
marcoroth committed Feb 7, 2024
1 parent 1910241 commit 56bd926
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,24 @@ 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
run: yarn install --frozen-lockfile

- name: Test
run: yarn test

- name: Lint
run: yarn lint
22 changes: 22 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 56bd926

Please sign in to comment.