Skip to content

Commit

Permalink
Github action to run unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
l-hedgehog committed Oct 14, 2022
1 parent 6ab0f8c commit 58637b6
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Node.js CI

on:
push:
branches: [ 'mococn*' ]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x, 16.x]

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Install dependencies
run: npm install

- name: Karma-mocha
run: npm run testmc:unit

- name: Upload test logs
uses: actions/upload-artifact@v3
with:
name: test-logs-${{ matrix.node-version }}
path: logs/

0 comments on commit 58637b6

Please sign in to comment.