Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add github action ci workflow #85

Merged
merged 2 commits into from
Mar 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "Continuous Integration"
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
jobs:
continuous-integration:
name: continuous-integration
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
mocha-version: [3, 4, 5, 6, 7, 8, 9, 10]
node-version: [14, 16, 18, 19]
piotrwitek marked this conversation as resolved.
Show resolved Hide resolved
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Nodejs
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version}}
- name: install dependencies
run: |
npm ci
npm i mocha@${{ matrix.mocha-version}}
- name: test
run: |
npm test