Skip to content

Refactoring (#13)

Refactoring (#13) #28

Workflow file for this run

name: quality
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
coding-standards:
name: Coding Standards
runs-on: [self-hosted, Linux, x64]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54
args: --timeout=10m
tests:
name: Tests
runs-on: [self-hosted, Linux, x64]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Build
run: |
go mod download
go build -race -v ./...
- name: Test
run: go test -race -coverprofile=coverage.txt -covermode=atomic -v ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4-beta
continue-on-error: true
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.txt