Bump modernc.org/sqlite from 1.46.1 to 1.46.2 #335
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
| # SPDX-FileCopyrightText: 2026 The DMorph contributors. | |
| # SPDX-License-Identifier: MPL-2.0 | |
| name: Tests | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| # Declare default permissions as read-only. | |
| permissions: read-all | |
| jobs: | |
| FormatCheck: | |
| strategy: | |
| matrix: | |
| go-version: | |
| - "stable" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0 | |
| with: | |
| egress-policy: audit | |
| - name: Install Go | |
| uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 | |
| with: | |
| go-version: ${{matrix.go-version}} | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 1 | |
| - name: FormatCheck | |
| run: if [ `go fmt ./... | wc -l` -gt 0 ] ; then echo "Found unformatted code" ; exit 1 ; else exit 0 ; fi | |
| StaticCheck: | |
| strategy: | |
| matrix: | |
| go-version: | |
| - "stable" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0 | |
| with: | |
| egress-policy: audit | |
| - name: Install Go | |
| uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 | |
| with: | |
| go-version: ${{matrix.go-version}} | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 1 | |
| - name: StaticCheck | |
| uses: dominikh/staticcheck-action@9716614d4101e79b4340dd97b10e54d68234e431 # v1.4.1 | |
| with: | |
| version: latest | |
| install-go: false | |
| cache-key: ${{matrix.go-version}} | |
| Test: | |
| strategy: | |
| matrix: | |
| go-version: | |
| - "stable" | |
| platform: | |
| #- macos-latest | |
| - ubuntu-latest | |
| #- windows-latest | |
| runs-on: ${{matrix.platform}} | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0 | |
| with: | |
| egress-policy: audit | |
| - name: Install Go | |
| uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 | |
| with: | |
| go-version: ${{matrix.go-version}} | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 1 | |
| - name: Test | |
| run: go tool gotestsum --junitfile junit.xml -- -race -v `go list ./...` --covermode=atomic --coverpkg=./... --coverprofile=coverage.txt | |
| - name: Upload test results to Codecov | |
| if: ${{ !cancelled() }} | |
| uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2 | |
| with: | |
| report_type: test_results | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Coverage | |
| run: go tool cover -func=coverage.txt | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| # This action is mainly composed of snippets of github.com/jidicula/go-fuzz-action | |
| # FuzzTest: | |
| # strategy: | |
| # matrix: | |
| # go-version: | |
| # - "stable" | |
| # platform: | |
| # #- macos-latest | |
| # - ubuntu-latest | |
| # #- windows-latest | |
| # packages: | |
| # - ./ | |
| # runs-on: ${{ matrix.platform }} | |
| # steps: | |
| # - name: Harden Runner | |
| # uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0 | |
| # with: | |
| # egress-policy: audit | |
| # | |
| # - name: Install Go | |
| # uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 | |
| # with: | |
| # go-version: ${{matrix.go-version}} | |
| # | |
| # - name: Checkout | |
| # uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| # with: | |
| # fetch-depth: 1 | |
| # | |
| # - name: Run Fuzz Test | |
| # shell: bash | |
| # run: go test ${{ matrix.packages }} -fuzz="Fuzz" -fuzztime="30s" -fuzzminimizetime="10s" | |
| # | |
| # - name: Upload fuzz failure seed corpus as run artifact | |
| # if: failure() | |
| # uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| # with: | |
| # name: testdata | |
| # path: testdata | |
| # | |
| # - run: echo "EVENT NAME IS ${{ github.event_name }}" | |
| # if: failure() | |
| # shell: bash | |
| # | |
| # - name: Save PR head commit SHA | |
| # if: failure() && github.event_name == 'pull_request' | |
| # shell: bash | |
| # run: | | |
| # SHA="${{ github.event.pull_request.head.sha }}" | |
| # echo "SHA=$SHA" >> $GITHUB_ENV | |
| # | |
| # - name: Save latest commit SHA if not PR | |
| # if: failure() && github.event_name != 'pull_request' | |
| # shell: bash | |
| # run: echo "SHA=${{ github.sha }}" >> $GITHUB_ENV | |
| # | |
| # - name: Output message | |
| # if: failure() | |
| # shell: bash | |
| # run: | | |
| # MESSAGE='Fuzz test failed on commit ${{ env.SHA }}. To troubleshoot locally, use the [GitHub CLI](https://cli.github.com) to download the seed corpus with\n```\ngh run download ${{ github.run_id }} -n testdata\n```' | |
| # DEEPLINK="https://github.com/${{ github.repository }}/commit/${{ env.SHA }}" | |
| # echo -e "${MESSAGE/${{ env.SHA }}/$DEEPLINK}" | |
| # echo -e "${MESSAGE/${{ env.SHA }}/[${GITHUB_SHA:0:8}]($DEEPLINK)}" >> $GITHUB_STEP_SUMMARY |