feat(ci): add scheduled workflow to trim gh-pages history #767
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
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - master | |
| - main | |
| paths: | |
| - "**" | |
| - "!docs/**" | |
| - "!**.md" | |
| pull_request: | |
| paths: | |
| - "**" | |
| - "!docs/**" | |
| - "!**.md" | |
| name: Test | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| Build: | |
| strategy: | |
| matrix: | |
| go-version: [1.25.x, 1.26.x] | |
| platform: [blacksmith-4vcpu-ubuntu-2404, blacksmith-4vcpu-windows-2025, blacksmith-6vcpu-macos-latest] | |
| runs-on: ${{ matrix.platform }} | |
| timeout-minutes: 30 | |
| env: | |
| # All GitHub-hosted amd64 runners provide AVX2; fail loudly if the | |
| # simd package silently falls back to the portable tier (see | |
| # Test_Accelerated). Non-amd64 builds (e.g. macos arm64) ignore it. | |
| GOFIBER_SIMD_REQUIRE_AVX2: "1" | |
| steps: | |
| - name: Fetch Repository | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Install Go | |
| uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| - name: Test | |
| uses: gofiber/.github/.github/actions/gotestsum@main | |
| with: | |
| packages: ./... | |
| rerun-fails: '2' | |
| args: -race -count=1 -coverprofile=coverage.txt -covermode=atomic -shuffle=on | |
| - name: Upload coverage reports to Codecov | |
| if: ${{ runner.os == 'Linux' && matrix.go-version == '1.26.x' }} | |
| uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: ./coverage.txt | |
| flags: unittests | |
| slug: gofiber/utils |