improve chunk throughput with elide array bound checks #32
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
# run tests on push to master, but not when other branches are pushed to | |
push: | |
branches: | |
- master | |
# run tests for all pull requests | |
pull_request: | |
env: | |
latest_go: "1.19.x" | |
GO111MODULE: on | |
jobs: | |
test: | |
strategy: | |
matrix: | |
# list of jobs to run: | |
include: | |
- job_name: Windows | |
go: 1.19.x | |
os: windows-latest | |
install_verb: install | |
- job_name: macOS | |
go: 1.19.x | |
os: macOS-latest | |
install_verb: install | |
- job_name: Linux | |
go: 1.19.x | |
os: ubuntu-latest | |
install_verb: install | |
- job_name: Linux | |
go: 1.18.x | |
os: ubuntu-latest | |
install_verb: install | |
- job_name: Linux | |
go: 1.17.x | |
os: ubuntu-latest | |
install_verb: install | |
- job_name: Linux | |
go: 1.16.x | |
os: ubuntu-latest | |
install_verb: get | |
- job_name: Linux | |
go: 1.15.x | |
os: ubuntu-latest | |
install_verb: get | |
name: ${{ matrix.job_name }} Go ${{ matrix.go }} | |
runs-on: ${{ matrix.os }} | |
env: | |
GOPROXY: https://proxy.golang.org | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Run tests | |
run: | | |
go test -cover ./... | |
lint: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go ${{ env.latest_go }} | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ env.latest_go }} | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v2 | |
with: | |
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. | |
version: v1.48 | |
# Optional: show only new issues if it's a pull request. The default value is `false`. | |
only-new-issues: true | |
args: --verbose --timeout 5m | |
skip-go-installation: true | |
# only run golangci-lint for pull requests, otherwise ALL hints get | |
# reported. We need to slowly address all issues until we can enable | |
# linting the master branch :) | |
if: github.event_name == 'pull_request' | |
- name: Check go.mod | |
run: | | |
echo "check if go.mod is up to date" | |
go mod tidy | |
git diff --exit-code go.mod |