Skip to content

Commit

Permalink
Enable continuous testing with GitHub Actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunabe committed May 11, 2023
1 parent 7db663d commit fd1b34c
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/run_tests.yml
@@ -0,0 +1,26 @@
name: Node.js CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: [ubuntu-latest]

strategy:
matrix:
node-version: [18.x, 20.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build --if-present
- run: npm test

0 comments on commit fd1b34c

Please sign in to comment.