Repository navigation
54 lines (46 loc) · 1.5 KB
/
Copy pathci.yml
File metadata and controls
54 lines (46 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: CI
on:
# PR branches only, as in the org's other repos.
push:
branches-ignore: [main]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ !startsWith(github.ref_name, 'release-please--') }}
permissions:
contents: read
jobs:
test:
uses: drumandbytes/reusable-actions/.github/workflows/go-ci.yml@v1
with:
# "1.26", not go.mod: `go 1.26.0` there would pin that exact patch.
go-version: "1.26"
# Never run here before; enable once its findings are triaged.
run-golangci-lint: false
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
- name: Build image
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
context: .
file: Dockerfile
push: false
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max
zizmor:
uses: drumandbytes/reusable-actions/.github/workflows/zizmor.yml@v1
# The one name the ruleset requires, however the jobs above change.
required-checks-passed:
name: Required checks passed
runs-on: ubuntu-latest
needs: [test, build, zizmor]
if: always()
steps:
- if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: exit 1