-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (39 loc) · 1.15 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
name: Test
on:
push:
branches: [main]
pull_request:
env:
GOPROXY: ${{ vars.GOPROXY }}
jobs:
test:
name: Test
strategy:
fail-fast: false
matrix:
os: ${{ vars.BUILD_AND_TEST_OS_MATRIX && fromJSON(vars.BUILD_AND_TEST_OS_MATRIX) || fromJSON('[ "ubuntu-latest", "macOS-latest", "windows-latest" ]') }}
runs-on: ${{ matrix.os }}
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21
check-latest: true
cache: false
- name: Check out
uses: actions/checkout@v4
- name: Make Short Test
if: ${{ github.repository_owner != 'anz-bank' }}
run: make short-test
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Make Test
if: ${{ github.repository_owner == 'anz-bank' }}
run: make test
env:
TEST_PRIV_REPO_TOKEN: ${{ secrets.TEST_PRIV_REPO_TOKEN }}
GIT_AUTHOR_NAME: "Tester"
GIT_AUTHOR_EMAIL: "[email protected]"
GIT_COMMITTER_NAME: "Tester"
GIT_COMMITTER_EMAIL: "[email protected]"
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}