generated from sigstore/sigstore-project-template
-
Notifications
You must be signed in to change notification settings - Fork 13
79 lines (67 loc) · 2.25 KB
/
build-tools-ci.yml
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Copyright 2022 The Sigstore Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: build-tools-ci
on:
pull_request:
defaults:
run:
shell: bash
jobs:
verify-build-tools:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
pull-requests: read
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: changes
with:
filters: |
tools:
- 'prober/**'
- 'pager-duty/**'
- .github/workflows/build-tools-ci.yml
- name: Set up Go
if: steps.changes.outputs.tools == 'true'
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v3.3.0
with:
go-version: '1.21'
check-latest: true
- name: build local probers
if: steps.changes.outputs.tools == 'true'
run: |
go build ./prober/rate-limiting.go
go build ./prober/ctlog/ctlog-sth.go
- name: build pager-duty
if: steps.changes.outputs.tools == 'true'
working-directory: pager-duty
run: |
make
- name: test pager-duty
if: steps.changes.outputs.tools == 'true'
working-directory: pager-duty
run: |
make test
- name: lint pager-duty
if: steps.changes.outputs.tools == 'true'
uses: golangci/golangci-lint-action@23faadfdeb23a6f9e511beaba149bb123b5b145a # v6.0.0
with:
working-directory: pager-duty
- name: build probers
if: steps.changes.outputs.tools == 'true'
run: |
make -C prober/ prober
make -C prober/ crane rekor-cli cosign