parsimony/.forgejo/workflows/ci.yaml
tgiachi a10616e216 ci: install Node in the golang jobs so the checkout action can run
- The golang image has no Node, and actions/checkout is a Node action
- The first run on my runner failed in the go and vuln jobs for this reason
2026-11-10 15:57:29 +01:00

38 lines
1.1 KiB
YAML

# Runs on Forgejo Actions. The jobs ask for a runner labelled `docker` that runs each job in the
# container named below; change `runs-on` if your runner is labelled differently.
name: ci
on:
push:
branches: [main]
pull_request:
jobs:
go:
runs-on: docker
container: golang:1.27
steps:
# The checkout action runs on Node, which the golang image does not carry.
- name: Install Node
run: apt-get update -qq && apt-get install -y -qq nodejs git
- uses: actions/checkout@v4
- run: make go-ci
admin:
runs-on: docker
container: node:24
steps:
- uses: actions/checkout@v4
- run: make admin-ci
# Separate job: a vulnerability published tomorrow must not make an unrelated change look broken,
# but it should be visible.
vuln:
runs-on: docker
container: golang:1.27
steps:
# The checkout action runs on Node, which the golang image does not carry.
- name: Install Node
run: apt-get update -qq && apt-get install -y -qq nodejs git
- uses: actions/checkout@v4
- run: make vuln