Skip to content

Better omit empty

Better omit empty #8

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
name: Tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
go:
# - "1.18.x"
# - "1.19.x"
- "1.20.x"
os:
- ubuntu-latest
# - macos-latest
# - windows-latest
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
cache: false
- name: Checkout repository
uses: actions/checkout@v3
- name: Run tests
run: ./ci/test.sh
- name: Upload coverage
uses: codecov/codecov-action@v3
with:
files: coverage.txt
bench:
name: Benchmarks
needs: test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go:
- "1.20.x"
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
cache: false
- name: Checkout repository
uses: actions/checkout@v3
- name: Install tools
run: go get golang.org/x/perf/cmd/benchstat
env:
GOPROXY: https://proxy.golang.org
- name: Run benchmarks
run: ./ci/bench.sh
- name: Upload statistics
uses: actions/upload-artifact@v3
with:
name: Benchstats-Go${{ matrix.go }}
path: benchstats