Skip to content

Commit

Permalink
Add GitHub Actions tests
Browse files Browse the repository at this point in the history
Co-authored-by: Lucas Garron <code@garron.net>
  • Loading branch information
FiloSottile and lgarron committed Nov 3, 2023
1 parent 3892ef5 commit 8ca157a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @type {import('eslint').ESLint.ConfigData} */
module.exports = {
ignorePatterns: ['.eslintrc.cjs', 'dist/'],
ignorePatterns: ['.eslintrc.cjs', 'dist/', 'tests/examples/'],
env: {
'shared-node-browser': true,
},
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test
on:
push:
pull_request:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 18.x # LTS as of 2023-11
- 20.x # current as of 2023-11
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- run: npm install
- run: npm run build
- run: npm run lint
- run: npm run test
- run: npm run examples
- run: npm run examples:bun

0 comments on commit 8ca157a

Please sign in to comment.