Skip to content

Improve: done project refactoring #8

Improve: done project refactoring

Improve: done project refactoring #8

Workflow file for this run

name: Go
on:
push:
branches: [ "master" ]
pull_request_target:
types: [ assigned, opened, synchronize ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Build
run: go build -v .
golangci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v5
with:
go-version: '1.21'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: v1.54
args: --timeout=30m --config=./.golangci.yml --issues-exit-code=0
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: tests
run: for test_module in $(git ls-files test); do go test -v -count=1 -race $test_module; done