47 lines
1.5 KiB
YAML
47 lines
1.5 KiB
YAML
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
# Installation test (ADR 0024): the release artifacts and scripts/install.sh
|
|
# in privileged systemd containers of every supported system. Needs a
|
|
# runner with access to a Docker daemon that allows privileged containers
|
|
# with cgroup v2 (see docs/adr/0003).
|
|
name: install
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
concurrency:
|
|
group: install-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
install:
|
|
name: Installation (${{ matrix.os }})
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: ["debian:12", "debian:13", "ubuntu:22.04", "ubuntu:24.04", "rocky:9"]
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
|
with:
|
|
go-version-file: go.mod
|
|
cache: false
|
|
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
|
with:
|
|
node-version: "24"
|
|
- name: Build release artefacts
|
|
run: make release PLATFORMS="linux/$(go env GOARCH)"
|
|
- name: Build a newer release for the upgrade
|
|
run: |
|
|
make -o web -o web-deps release PLATFORMS="linux/$(go env GOARCH)" DIST_DIR=dist-next \
|
|
VERSION="$(git describe --tags --always)-next"
|
|
- name: Install, enroll, deploy, rerun, upgrade, uninstall
|
|
env:
|
|
RUN_ID: ${{ github.run_id }}
|
|
run: test/install/run.sh "${{ matrix.os }}" dist dist-next
|