Skip to content

Commit

Permalink
Run tests in CI/CD pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Splines committed Dec 1, 2023
1 parent 9cba006 commit b1e8ecb
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Tests

on:
push:
branches: [main]
pull_request:
types: [opened, reopened, synchronize, ready_for_review]

jobs:
mocha:
name: Mocha
strategy:
matrix:
os: [ubuntu-latest]
eslint: [6, 7, 8]
node: [16, 17, 18, 19, 20, 21]
include:
- os: windows-latest
eslint: 7
node: 16
- os: macOS-latest
eslint: 7
node: 16
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: npm install
env:
CI: true
- name: Run Mocha tests
run: npm test

0 comments on commit b1e8ecb

Please sign in to comment.