remove AlphanumericString helper (#51) #23
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| generate: | |
| runs-on: ubuntu-latest | |
| name: "Check generated files are up to date" | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install Go stable version | |
| uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 | |
| with: | |
| go-version-file: "go.mod" | |
| check-latest: true | |
| - name: Regenerate code | |
| run: go generate ./... | |
| - name: Verify no changes | |
| run: | | |
| if ! git diff --exit-code; then | |
| echo "::error::Generated files are out of date. Run 'go generate ./...' and commit the result." | |
| exit 1 | |
| fi | |
| build: | |
| runs-on: ubuntu-latest | |
| name: "Test" | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Cache testdata | |
| uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 | |
| env: | |
| TEST_SUITE_COMMIT: "48461fc3568972801b40eaccc428a31bce338f6e" | |
| with: | |
| path: tests | |
| key: ${{ runner.os }}-testdata-${{ env.TEST_SUITE_COMMIT }} | |
| restore-keys: | | |
| ${{ runner.os }}-testdata- | |
| - name: Setup testdata | |
| env: | |
| TEST_SUITE_COMMIT: "48461fc3568972801b40eaccc428a31bce338f6e" | |
| run: | | |
| ./init-test-suite.sh $TEST_SUITE_COMMIT | |
| - name: Cache Go modules | |
| uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 | |
| with: | |
| path: | | |
| ~/go/pkg/mod | |
| ~/.cache/go-build | |
| ~/.cache/bazel | |
| key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
| restore-keys: | | |
| ${{ runner.os }}-go- | |
| - name: Install Go stable version | |
| uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 | |
| with: | |
| go-version-file: "go.mod" | |
| check-latest: true | |
| - name: Test | |
| run: go test ./... |