Skip to content

Commit

Permalink
GitHub: Run Mocha tests in a GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
UlrichEckhardt committed Jul 15, 2024
1 parent 11c7abc commit 0a4e684
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/mocha-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Mocha Tests

on:
pull_request:
branches:
- main
push:
branches:
- main

permissions:
contents: read

jobs:
# `Mocha`-based tests
run-mocha:
name: Run mocha test runner
runs-on: ubuntu-latest

steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4

- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v4
with:
cache: npm

- name: Install Dependencies
id: npm-ci
run: npm ci

- name: Run Mocha Script
id: npm-tests
run: npm run tests

0 comments on commit 0a4e684

Please sign in to comment.