ci: try to fix setup-node action #600
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: Test | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, 'ci skip')" | |
container: ghcr.io/tuna/thuthesis-test-env | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build documentation and example | |
run: make all-dev | |
- name: Upload build results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: build-result | |
path: | | |
thuthesis.pdf | |
thuthesis-example.pdf | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
- name: Build release zip with gulp | |
run: | | |
npm install | |
npm run build -- --version="$(git describe --tags)" | |
- name: Build CTAN release zip with l3build | |
run: l3build ctan --config build-ctan | |
- name: Upload release zip | |
uses: actions/upload-artifact@v4 | |
with: | |
name: thuthesis-snapshot-release | |
path: | | |
thuthesis-ctan.zip | |
dist/thuthesis-*.zip | |
test: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, 'ci skip')" | |
container: ghcr.io/tuna/thuthesis-test-env | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test with l3build | |
run: make test | |
- name: Upload test results if failed | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: test-result | |
path: | | |
build/test | |
build/test-testfiles |