Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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@v6
- name: "Set up Node.js using .nvmrc information"
uses: actions/setup-node@v6
with:
node-version-file: ".nvmrc"
- name: "Install dependencies"
run: npm ci
- name: "Run Eleventy"
run: npx @11ty/eleventy --incremental
Comment on lines +12 to +24

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium test

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/*
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.