Skip to content

initial commit

initial commit #2

Workflow file for this run

name: test
on:
workflow_call:
push:
tags:
- v*
branches-ignore:
- master
- main
permissions:
contents: write
jobs:
build:
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/checkout@v2"
with:
fetch-depth: 0
- name: "Golang"
uses: "actions/setup-go@v3"
with:
go-version: "1.18"
- name: "Cache"
uses: "actions/cache@v3"
with:
path: "~/go/pkg/mod"
key: "${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}"
restore-keys: |
${{ runner.os }}-go-
- name: "Modules"
run: "go mod download"
- name: "Test"
run: go test -json ./cmd/... ./pkg/... > test.json
- name: "Annotate"
if: always()
uses: guyarb/[email protected]
with:
test-results: test.json