-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (44 loc) · 1.22 KB
/
aqua.yaml
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
name: aqua
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
strategy:
matrix:
goos: [darwin, linux]
goarch: [amd64, arm64]
runs-on: ubuntu-latest
env:
AQUA_CONFIG: config/aqua/aqua.yaml
AQUA_LOG_COLOR: always
AQUA_POLICY_CONFIG: config/aqua/aqua-policy.yaml
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
# NOTE: use paths-filter instead of on.pull_request.paths to trigger test always
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
aqua:
- .github/workflows/aqua.yaml
- config/aqua/aqua.yaml
- config/aqua/experimental.yaml
- name: Install aqua
if: steps.filter.outputs.aqua == 'true'
uses: aquaproj/[email protected]
with:
aqua_version: v2.42.2
- uses: actions/setup-go@v5
if: steps.filter.outputs.aqua == 'true'
with:
go-version: "1.22.1"
- name: Run test
if: steps.filter.outputs.aqua == 'true'
run: aqua install
env:
AQUA_GOARCH: ${{ matrix.goarch }}
AQUA_GOOS: ${{ matrix.goos }}