Skip to content

chore(deps): update actions/checkout digest to 44c2b7a #151

chore(deps): update actions/checkout digest to 44c2b7a

chore(deps): update actions/checkout digest to 44c2b7a #151

Workflow file for this run

on:
push:
name: push
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.29
test:
name: Test with Coverage
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.17'
- name: Check out code
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4
- name: Install dependencies
run: |
go mod download
- name: Run Unit tests
run: |
go test -race -covermode atomic -coverprofile=covprofile ./...
- name: Send coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: covprofile
build:
name: test, build
runs-on: ubuntu-latest
steps:
- name: install go
uses: actions/setup-go@v5
with:
go-version: '1.17'
- name: git checkout
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4
- name: install lint
run: GO111MODULE=off go get golang.org/x/lint/golint
- name: run golint and go fmt
run: ./tests/fmtlint.sh
- name: go build
run: go build