Skip to content

Instantly share code, notes, and snippets.

@j9t
Last active April 23, 2025 08:50
Show Gist options
  • Save j9t/7d91493c5f5e8b993cda2c77473a3c63 to your computer and use it in GitHub Desktop.
Save j9t/7d91493c5f5e8b993cda2c77473a3c63 to your computer and use it in GitHub Desktop.
name: "Tests"
on:
push:
paths:
- ".nvmrc"
- "package.json"
- "package-lock.json"
jobs:
build:
name: "Test changed package*.json and changed Node versions"
runs-on: ubuntu-latest
steps:
- name: "Check out repository"
uses: actions/checkout@v4
- name: "Set up Node.js using .nvmrc information"
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- name: "Install dependencies"
run: npm ci
- name: "Run Eleventy"
run: npx @11ty/eleventy --incremental
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment