Fix number parsing #324
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: Go | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
lint: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.23" | |
- name: run linters | |
run: | | |
make lint | |
race-test: | |
name: Test with -race | |
strategy: | |
matrix: | |
os: [ "ubuntu-latest", "macos-latest", "windows-latest" ] | |
go-version: [ "1.21", "1.22", "1.23" ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: setup Go ${{ matrix.go-version }} | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: test | |
run: | | |
make test | |
i386-test: | |
name: Test in i386 | |
strategy: | |
matrix: | |
os: [ "ubuntu-latest", "windows-latest" ] | |
go-version: [ "1.21", "1.22", "1.23" ] | |
runs-on: ${{ matrix.os }} | |
env: | |
GOARCH: "386" | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: setup Go ${{ matrix.go-version }} | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: test | |
run: | | |
make simple-test | |
ycat: | |
name: ycat | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.23" | |
- name: build | |
run: | | |
make ycat/build | |
- name: run | |
run: | | |
./ycat .github/workflows/go.yml | |
coverage: | |
name: Coverage | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.23" | |
- name: measure coverage | |
run: | | |
make cover | |
- uses: codecov/codecov-action@v4 | |
with: | |
fail_ci_if_error: true | |
verbose: true | |
token: ${{ secrets.CODECOV_TOKEN }} |