Skip to content

ci: Use GHA from actions org instead of third user #603

ci: Use GHA from actions org instead of third user

ci: Use GHA from actions org instead of third user #603

Workflow file for this run

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