Skip to content

Commit

Permalink
ci: add an action for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mr150 committed Jun 11, 2024
1 parent 1597233 commit 12da695
Show file tree
Hide file tree
Showing 4 changed files with 215 additions and 205 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.{yml,yaml}]
indent_style = space
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Test

on:
pull_request:
paths:
- 'packages'
- 'test'
- '.github/workflows/test.yml'

jobs:
test:
name: Check that lint and tests pass
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build:packages
- name: Lint
run: npm run lint
- name: Test
run: npm test
Loading

0 comments on commit 12da695

Please sign in to comment.