chore(deps): bump actions/cache from 5.0.5 to 6.1.0 #3361
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 | |
| env: | |
| # Opt out of usage telemetry from build and framework tooling in CI | |
| ASTRO_TELEMETRY_DISABLED: "1" | |
| DO_NOT_TRACK: "1" | |
| NEXT_TELEMETRY_DISABLED: "1" | |
| TURBO_TELEMETRY_DISABLED: "1" | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| merge_group: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: install dependencies | |
| uses: ./.github/actions/install-dependencies | |
| - name: Build | |
| run: bun run build | |
| - name: Publish to pkg.pr.new | |
| run: bun pkg-pr-new publish --packageManager=bun './packages/*' --comment=off | |
| - name: BundleMon | |
| uses: lironer/bundlemon-action@cadbdd58f86faf1900725ef69d455444124b3748 # v1.3.0 | |
| check-types: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install Dependencies | |
| uses: ./.github/actions/install-dependencies | |
| - name: Check Types | |
| run: bun check-types | |
| commitlint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install Dependencies | |
| uses: ./.github/actions/install-dependencies | |
| - name: Validate current commit (last commit) with commitlint | |
| if: github.event_name == 'push' | |
| run: bun commitlint --last --verbose | |
| - name: Validate PR commits with commitlint | |
| if: github.event_name == 'pull_request' | |
| run: bun commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose | |
| cspell: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install Dependencies | |
| uses: ./.github/actions/install-dependencies | |
| - name: Check Spelling | |
| run: bun spell-check | |
| editorconfig: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install Dependencies | |
| uses: ./.github/actions/install-dependencies | |
| - name: Run EditorConfig Checker | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| run: bun ec | |
| i18n: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install Dependencies | |
| uses: ./.github/actions/install-dependencies | |
| - name: Extract and check translations | |
| run: | | |
| bun run --cwd packages/i18n i18n:extract | |
| bun lint:fix | |
| git diff --quiet --ignore-submodules HEAD | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install Dependencies | |
| uses: ./.github/actions/install-dependencies | |
| - name: Lint | |
| run: bun lint | |
| syncpack: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install Dependencies | |
| uses: ./.github/actions/install-dependencies | |
| - name: Run syncpack | |
| run: bun syncpack lint | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install Dependencies | |
| uses: ./.github/actions/install-dependencies | |
| - name: Test | |
| run: bun run test | |
| test-e2e: | |
| timeout-minutes: 60 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install Dependencies | |
| uses: ./.github/actions/install-dependencies | |
| - name: Cache Playwright browsers | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| key: ${{ runner.os }}-playwright-${{ hashFiles('package.json') }} | |
| path: ~/.cache/ms-playwright | |
| restore-keys: | | |
| ${{ runner.os }}-playwright- | |
| - name: Install Playwright Browsers | |
| run: bunx playwright install --with-deps | |
| - name: Pull Surfpool | |
| run: docker pull surfpool/surfpool:latest | |
| - name: Run Playwright tests | |
| run: bun run test:e2e | |
| - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| if: ${{ !cancelled() }} | |
| with: | |
| name: playwright-report | |
| path: playwright-report/ | |
| retention-days: 30 | |
| test-integration: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install Dependencies | |
| uses: ./.github/actions/install-dependencies | |
| - name: Start Surfpool | |
| run: | | |
| docker run -d --name surfpool -e SURFPOOL_NETWORK_HOST=0.0.0.0 -p 8899:8899 -p 8900:8900 surfpool/surfpool:latest start --offline --no-tui | |
| bunx wait-on tcp:localhost:8899 --verbose --timeout 10000 | |
| bunx wait-on tcp:localhost:8900 --verbose --timeout 10000 | |
| - name: Test Integration | |
| run: bun run test:integration |