Skip to content

Commit

Permalink
GitHub: Run Mocha tests in a GH action
Browse files Browse the repository at this point in the history
UlrichEckhardt committed Jul 16, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 86a1dfd commit 0f5a8cd
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/mocha-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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
node-version: 22

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

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

0 comments on commit 0f5a8cd

Please sign in to comment.