Skip to content

Bump actions/setup-go from 4 to 5 (#5) #23

Bump actions/setup-go from 4 to 5 (#5)

Bump actions/setup-go from 4 to 5 (#5) #23

Workflow file for this run

name: Continuous Integration
on:
push:
branches:
- "**"
paths-ignore:
- "**.md"
jobs:
ci:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Clone
uses: actions/checkout@v4
- id: setup-go
name: Setup GO
uses: actions/setup-go@v5
with:
go-version: ^1
- name: Download dependencies
if: steps.setup-go.outputs.cache-hit != 'true'
shell: bash
run: go get -t ./...
- name: Go fmt
run: test -z $(gofmt -l .)
shell: bash
- name: Go fmt-diff
if: failure()
run: gofmt -e -d .
shell: bash
- name: Go vet
if: success() || failure() # runs everytime except the job is cancelled
run: go vet ./...
shell: bash
- name: Golangci lint
uses: golangci/golangci-lint-action@v3
if: success() || failure() # runs everytime except the job is cancelled
with:
skip-pkg-cache: true
args: --timeout=1m
- name: Unit test
run: go test ./...
- name: Example
run: |
cd example
go get -t ./...
./run.sh