Gotta say that builds.sr.ht letting you just ssh into a machine after… #397
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Node CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: Install dependencies | |
run: | | |
npm ci | |
# npm is an awful piece of software | |
# https://github.com/npm/cli/issues/4828 | |
npm install --include=optional sharp | |
- name: Run tests | |
run: npm test |