Skip to content

update version

update version #9

Workflow file for this run

name: CI
on:
workflow_dispatch:
push:
branches: [master]
paths: "**.go"
pull_request:
branches: [master]
paths: "**.go"
defaults:
run:
shell: bash -Eeuo pipefail {0}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
run:
name: CI
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Go
id: cache-go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- name: Go mod download
if: steps.cache-go.outputs.cache-hit != 'true'
run: go mod download -x
- name: Go Build
run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o /dev/null .
- name: Run tests
run: |
set -euo pipefail
go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@latest
go test -json -v ./... 2>&1 | tee /tmp/gotest.log | gotestfmt
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
args: "--timeout=2m"
skip-pkg-cache: true
skip-build-cache: true
skip-cache: true