Skip to content

Update README.md

Update README.md #1

Workflow file for this run

name: CI
on:
push:
branches:
- main
paths-ignore:
- "!**/*.go"
- "!go.*"
- "!*.go"
pull_request:
paths-ignore:
- "!**/*.go"
- "!go.*"
- "!*.go"
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ["1.19", "1.21.x"]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
cache-dependency-path: go.sum
cache: true
- name: Build
run: make build
- name: Unit test
run: make test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: coverage.out
flags: unittests
- name: Upload coverage
uses: actions/upload-artifact@v2
with:
name: coverage
path: coverage.out
- name: Benchmark test
run: make bench
# - name: Upload coverage to Codacy
# # run: bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r coverage.out --force-language go -t ${{ secrets.CODACY_PROJECT_TOKEN }}
# uses: codacy/codacy-coverage-reporter-action@v1
# with:
# project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
# coverage-reports: coverage.out
# - name: Run Codacy Analysis CLI
# uses: codacy/codacy-analysis-cli-action@master
static-check:
strategy:
fail-fast: false
matrix:
os: ["windows-latest", "ubuntu-latest", "macOS-latest"]
go: ["1.19"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: dominikh/staticcheck-action@v1.2.0
with:
version: latest
install-go: false
cache-key: ${{ matrix.go }}