ci: Use GHA from actions org instead of third user #603
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| tags: | |
| - v* | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| go-version: ["1.15.7", "1.14.14", "1.16.x"] | |
| os: [macos-latest, windows-latest, ubuntu-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Cache Go modules | |
| # not supported on windows with gh actions at the moment | |
| uses: actions/cache@v2 | |
| with: | |
| path: ~/go/pkg/mod | |
| key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
| - name: Setup Go for Building | |
| uses: actions/setup-go@v2 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| stable: '!contains(${{ matrix.go }}, "beta") && !contains(${{ matrix.go }}, "rc")' | |
| - name: Build Hypper | |
| run: make build | |
| - name: Unit test Hypper | |
| run: make test-unit | |
| - name: Show Coverage of Hypper | |
| run: make coverage | |
| - name: Upload hypper binary | |
| uses: actions/upload-artifact@v2 | |
| with: | |
| name: hypper-${{ runner.os }}-${{ github.sha }}-go${{ matrix.go-version }} | |
| path: ${{ github.workspace }}/bin/hypper* | |
| retention-days: 20 |