Add a method to enable multiple auth tokens for a single host (#45) #49
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
env: | |
GOPROXY: ${{ vars.GOPROXY }} | |
jobs: | |
test: | |
name: Test | |
strategy: | |
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@v3 | |
with: | |
go-version: 1.21 | |
check-latest: true | |
- name: Check out | |
uses: actions/checkout@v3 | |
- name: Make Short Test | |
if: ${{ github.repository_owner != 'anz-bank' }} | |
run: make short-test | |
- name: Make Test | |
if: ${{ github.repository_owner == 'anz-bank' }} | |
run: make test | |
env: | |
TEST_PRIV_REPO_TOKEN: ${{ secrets.TEST_PRIV_REPO_TOKEN }} |