pi-unigpt/.github/workflows/ci.yml
Benjamin Hackl 79eb374b74
Some checks failed
CI / test (22) (push) Failing after 0s
CI / test (24) (push) Failing after 0s
CI: move workflow to .github and use a subpath-aware checkout
actions/checkout drops the /git subpath of our Gitea when building the
clone URL. Use ischanx/checkout v6.0.2, pinned to its commit.
2026-11-03 21:33:31 +01:00

32 lines
861 B
YAML

name: CI
on:
push:
branches: [main]
tags: ["v*"]
pull_request:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [22, 24]
steps:
# Upstream actions/checkout builds the clone URL from the server's origin
# and drops a subpath such as /git (actions/checkout#1370, #1242), so it
# cannot clone from imsc.uni-graz.at/git. ischanx/checkout keeps the path.
# Pinned to the commit of its v6.0.2 tag; its v4 tags lack the fix.
- uses: ischanx/checkout@b3a7a36c84c480d7e1a6f9f7ca7bb55dc519f0ba # v6.0.2
- uses: pnpm/action-setup@v4
with:
version: 11
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm run ci