This repository has been archived by the owner on Mar 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (70 loc) · 1.9 KB
/
test.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
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
---
name: test
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
AQUA_LOG_COLOR: always
GITHUB_TOKEN: ${{ github.token }}
jobs:
ci-info:
runs-on: ubuntu-latest
env:
AQUA_CONFIG: aqua/ci-info.yaml
steps:
- uses: actions/checkout@v3
- uses: aquaproj/[email protected]
with:
aqua_version: v2.23.1
- uses: suzuki-shunsuke/ci-info-action/[email protected]
- run: echo "https://github.com/aquaproj/aqua-registry/pull/$CI_INFO_PR_NUMBER" >> "$GITHUB_STEP_SUMMARY"
test:
needs: ci-info
strategy:
matrix:
env:
- runs-on: windows-latest
- runs-on: ubuntu-latest
- runs-on: macos-latest
- runs-on: ubuntu-latest
goarch: arm64
- runs-on: ubuntu-latest
goos: darwin
goarch: arm64
- runs-on: windows-latest
goarch: arm64
runs-on: ${{ matrix.env.runs-on }}
defaults:
run:
shell: bash
env:
AQUA_CONFIG: aqua/test.yaml
steps:
- uses: actions/checkout@v3
- uses: suzuki-shunsuke/ci-info-action/[email protected]
# - name: Generate token
# id: generate_token
# uses: tibdex/github-app-token@v1
# with:
# app_id: ${{ secrets.APP_ID }}
# private_key: ${{ secrets.APP_PRIVATE_KEY }}
- uses: aquaproj/[email protected]
with:
aqua_version: v2.23.1
- uses: aquaproj/registry-action/[email protected]
with:
goos: ${{ matrix.env.goos }}
goarch: ${{ matrix.env.goarch }}
go_version: "1.18.5"
# env:
# GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
# This job is used for branch protection rule
# Add this job to `Status checks that are required`
status-check:
runs-on: ubuntu-latest
needs: [test]
if: failure()
steps:
- run: exit 1