2023-09-21 16:22:17 +00:00
|
|
|
---
|
|
|
|
name: CI
|
|
|
|
on: # yamllint disable-line rule:truthy
|
|
|
|
pull_request:
|
|
|
|
workflow_call:
|
|
|
|
jobs:
|
|
|
|
test_frontend:
|
|
|
|
name: Test alertmanager frontend
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-08-12 08:31:33 +00:00
|
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
2023-09-21 16:22:17 +00:00
|
|
|
- run: make clean
|
|
|
|
- run: make all
|
|
|
|
working-directory: ./ui/app
|
|
|
|
- run: make assets
|
|
|
|
- run: make apiv2
|
|
|
|
- run: git diff --exit-code
|
|
|
|
|
2023-10-12 09:43:30 +00:00
|
|
|
build:
|
|
|
|
name: Build Alertmanager for common architectures
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
thread: [ 0, 1, 2 ]
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
|
|
|
|
- uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0
|
|
|
|
- uses: ./.github/promci/actions/build
|
|
|
|
with:
|
|
|
|
promu_opts: "-p linux/amd64 -p windows/amd64 -p linux/arm64 -p darwin/amd64 -p darwin/arm64 -p linux/386"
|
|
|
|
parallelism: 3
|
|
|
|
thread: ${{ matrix.thread }}
|
|
|
|
|
2023-09-21 16:22:17 +00:00
|
|
|
test:
|
|
|
|
name: Test
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
# Whenever the Go version is updated here, .promu.yml
|
|
|
|
# should also be updated.
|
|
|
|
container:
|
2024-10-16 13:02:24 +00:00
|
|
|
image: quay.io/prometheus/golang-builder:1.23-base
|
2023-09-21 16:22:17 +00:00
|
|
|
steps:
|
2024-08-12 08:31:33 +00:00
|
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
|
|
|
- uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0
|
2023-09-21 16:22:17 +00:00
|
|
|
- uses: ./.github/promci/actions/setup_environment
|
|
|
|
- run: make
|
2023-11-03 14:50:06 +00:00
|
|
|
- run: git diff --exit-code
|