Feature/test new runner #25
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: | |
pull_request: | |
branches: | |
- main | |
- develop | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
goos: | |
- windows | |
- linux | |
goarch: | |
- amd64 | |
- arm64 | |
env: | |
GOOS: ${{ matrix.goos }} | |
GOARCH: ${{ matrix.goarch }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.21" | |
cache: false | |
- name: Build | |
run: go build -o ccmanager cmd/ccmanager.go | |
- name: Run golangci-lint | |
uses: golangci/[email protected] | |
testmac: | |
runs-on: macos-latest # beta arm runner | |
strategy: | |
matrix: | |
goos: | |
- darwin | |
goarch: | |
- amd64 | |
- arm64 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.21" | |
cache: false | |
- name: Build | |
run: go build -o ccmanager cmd/ccmanager.go | |
- name: Run golangci-lint | |
uses: golangci/[email protected] |