Skip to content

chore(actions): fixed troubles for actions #2

chore(actions): fixed troubles for actions

chore(actions): fixed troubles for actions #2

Workflow file for this run

name: Github Actions
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Golang
uses: actions/setup-go@v3
with:
go-version: ~1.19
- name: Check out code
uses: actions/checkout@v3
- name: Build binary
run: make build
working-directory: .
tests:
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Set up Golang
uses: actions/setup-go@v3
with:
go-version: ^1.19
- name: Check out code
uses: actions/checkout@v3
- name: Unit tests
run: go test -v -count=1 -race -timeout=1m ./...
working-directory: .
lint:
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Set up Golang
uses: actions/setup-go@v3
with:
go-version: ~1.19
- name: Check out code
uses: actions/checkout@v3
- name: Linters
uses: golangci/golangci-lint-action@v3
with:
version: v1.50.1
working-directory: .