Skip to content

Commit

Permalink
config(ci): run tests on multiple node versions (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
fvsch authored Nov 14, 2024
1 parent dbe3931 commit 843e927
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.yml]
indent_style = space
indent_size = 2
20 changes: 16 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run tests
name: CI

on:
push:
Expand All @@ -7,14 +7,26 @@ on:
branches: [main]

jobs:
check-types:
runs-on: ubuntu-latest
name: Check types
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm ci
- run: npm run typecheck
test:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
node: [20, 22]
name: Run tests on Node ${{ matrix.node }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm test
- run: npm run typecheck

0 comments on commit 843e927

Please sign in to comment.