feat: add fallback implementations for unquoting and UTF-8 validation #156
Workflow file for this run
This file contains hidden or 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: Unit Test | |
| on: pull_request | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| go-version: [1.20.x, 1.21.x, 1.22.x, 1.23.x, 1.24.x] | |
| runner_arch: [ubuntu-24.04-arm] | |
| runs-on: ${{ matrix.runner_arch }} | |
| steps: | |
| - name: Clear repository | |
| run: rm -fr $GITHUB_WORKSPACE && mkdir $GITHUB_WORKSPACE | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| cache: true | |
| - name: Cache Go modules | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/go/pkg/mod | |
| ${{ github.workspace }}/go.sum | |
| key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
| - name: Unit Test | |
| run: | | |
| GOMAXPROCS=4 go test -race -covermode=atomic -coverprofile=coverage.txt $(go list ./... | grep -v -E 'loader|jit|avx|x86|sse') | |
| - name: Data Race | |
| run: | | |
| ./scripts/test_race.sh | |
| - name: Issue Test | |
| run: GOMAXPROCS=4 go test -race ./issue_test | |
| - name: Generic Test | |
| run: GOMAXPROCS=4 go test -race ./generic_test | |
| - name: Codecov | |
| run: bash <(curl -s https://codecov.io/bash) |