Skip to content

feat: init implementation #10

feat: init implementation

feat: init implementation #10

Workflow file for this run

name: CI
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go 1.26
uses: actions/setup-go@v5
with:
go-version: '1.26.0-rc.1'
- name: Run tests
env:
GOEXPERIMENT: simd
run: go test -v ./...
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go 1.26
uses: actions/setup-go@v5
with:
go-version: '1.26.0-rc.1'
- name: Install golangci-lint
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
- name: Run golangci-lint
env:
GOEXPERIMENT: simd
run: golangci-lint run
benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go 1.26
uses: actions/setup-go@v5
with:
go-version: '1.26.0-rc.1'
- name: Run benchmarks
env:
GOEXPERIMENT: simd
run: |
go test -bench=. -benchmem -count=5 ./... | tee benchmark.txt
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
tool: 'go'
output-file-path: benchmark.txt
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
comment-on-alert: true
alert-threshold: '150%'
fail-on-alert: false