Skip to content

docs: Update README.md #22

docs: Update README.md

docs: Update README.md #22

Workflow file for this run

on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_call:
name: Build
defaults:
run:
shell: bash
jobs:
lint:
name: Lint files
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.20'
check-latest: true
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
test:
name: Run tests
runs-on: 'ubuntu-latest'
needs: lint
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.20'
check-latest: true
- run: go test -v -cover ./...
build:
name: Build binary
runs-on: 'ubuntu-latest'
needs: test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.20'
check-latest: true
- name: Build
env:
GOOS: linux
GOARCH: amd64
run: |
script/build