Skip to content

Commit

Permalink
workflows: add test-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGSS committed Sep 13, 2024
1 parent 8b5b645 commit cb46b70
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Test CI

on:
push:
branches:
- main
pull_request:

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18, 20, 22]

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install

- name: Run tests
run: npm test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "",
"main": "lib/index.js",
"scripts": {
"test": "node --allow-natives-syntax test/basic.js"
"test": "node --test"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit cb46b70

Please sign in to comment.