Skip to content

.github/workflows/mocha-test.yaml configure node 22 #14

.github/workflows/mocha-test.yaml configure node 22

.github/workflows/mocha-test.yaml configure node 22 #14

Workflow file for this run

name: Mocha Tests
on:
- push
# TODO
# 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: Checkout Test Files
id: checkout-test-files
uses: actions/checkout@v4
with:
repository: c2pa-org/public-testfiles
path: ./public-testfiles
- 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: Check Versions
id: versions
run: |
npm --version
node --version
- name: Run Mocha Script
id: npm-tests
run: npm run test