Skip to content

dev(github): add workflow and tests #1

dev(github): add workflow and tests

dev(github): add workflow and tests #1

Workflow file for this run

name: Test (nvm-based runner)
on:
workflow_dispatch: {}
push:
branches: ["master"]
jobs:
nvm-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install nvm and run `scripts/test-all.sh`
run: |
# Install nvm (script uses ~/.nvm/nvm.sh)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
# shellcheck disable=SC1090
. "$HOME/.nvm/nvm.sh"
chmod +x scripts/test-all.sh
./scripts/test-all.sh
- name: Upload coverage artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: coverage-nvm
path: coverage