Modify DefaultCred to use AzureCLI creds #40
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: Build and Unit Test az-mpf | |
on: [push] | |
jobs: | |
build-test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go-version: [ '1.21' ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Install dependencies | |
run: go get ./... | |
- name: Build | |
run: go build -v ./... | |
- name: Test with Go | |
run: | | |
go install github.com/jstemmer/go-junit-report@latest | |
go test -v ./pkg/domain ./pkg/infrastructure/ARMTemplateShared ./pkg/infrastructure/mpfSharedUtils | go-junit-report -set-exit-code > TestResults-${{ matrix.go-version }}.xml | |
# go test -json ./pkg/domain ./pkg/infrastructure/ARMTemplateShared ./pkg/infrastructure/mpfSharedUtils > TestResults-${{ matrix.go-version }}.json | |
- name: Upload Go test results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Go-results-${{ matrix.go-version }} | |
path: TestResults-${{ matrix.go-version }}.xml | |
- name: Test Summary | |
uses: test-summary/action@v1 | |
with: | |
paths: | | |
TestResults-${{ matrix.go-version }}.xml | |
if: always() |