Skip to content

feat: update goreleaser config to latest version #18

feat: update goreleaser config to latest version

feat: update goreleaser config to latest version #18

Workflow file for this run

name: Test
on:
pull_request:
push:
branches:
- master
jobs:
go-test:
name: "Go Test"
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.18.x, 1.19.x]
steps:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Fetch dependencies
run: make deps
- name: Test
run: make test
coverage:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.18.x
- name: Checkout code
uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Fetch dependencies
run: make deps
- name: Run tests
run: make cov
- name: Upload coverage
uses: codecov/codecov-action@v3
with:
flags: unittests
files: .cover.out
token: ${{ secrets.CODECOV_TOKEN }}