Skip to content

Commit

Permalink
run fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
penalosa committed Sep 27, 2024
1 parent 83e5c22 commit 2f5025b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 58 deletions.
5 changes: 0 additions & 5 deletions .github/pr-labeler.config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,3 @@ e2e:
skip-pr-description-validation:
- all:
- head-branch: "changeset-release/main"

fixtures:
- all:
- changed-files:
- any-glob-to-any-file: "fixtures/**/*"
54 changes: 1 addition & 53 deletions .github/workflows/test-and-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,58 +91,6 @@ jobs:
- name: Check the changesets
run: node -r esbuild-register tools/deployments/validate-changesets.ts

fixtures:
timeout-minutes: 30
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.filter }}-test
cancel-in-progress: true

name: "Tests"
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-13]
filter: ["./fixtures/*"]
runs-on: ${{ matrix.os }}
if: github.head_ref == 'changeset-release/main' || contains(github.event.*.labels.*.name, 'fixtures' )
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install Dependencies
uses: ./.github/actions/install-dependencies
with:
turbo-api: ${{ secrets.TURBO_API }}
turbo-team: ${{ secrets.TURBO_TEAM }}
turbo-token: ${{ secrets.TURBO_TOKEN }}
turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }}

- name: Run tests
run: pnpm run test:ci --concurrency 1 --filter=${{ matrix.filter }}
env:
TMP_CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
TMP_CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
NODE_OPTIONS: "--max_old_space_size=8192"
WRANGLER_LOG_PATH: ${{ runner.temp }}/wrangler-debug-logs/
TEST_REPORT_PATH: ${{ runner.temp }}/test-report/index.html
CI_OS: ${{ runner.os }}

- name: Upload debug logs
if: always()
uses: actions/upload-artifact@v3
with:
name: e2e-test-debug-logs-${{ matrix.os }}-${{ matrix.node }}
path: ${{ runner.temp }}/wrangler-debug-logs/

- name: Upload test report
if: always()
uses: actions/upload-artifact@v3
with:
name: e2e-test-report-${{ matrix.os }}-${{ matrix.node }}
path: ${{ runner.temp }}/test-report/

test:
timeout-minutes: 30
concurrency:
Expand All @@ -154,7 +102,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-13]
filter: ["./packages/*"]
filter: ["./packages/*", "./fixtures/*"]
# Things in the tools folder are for running in CI, and so only need to run on linux
include:
- os: ubuntu-latest
Expand Down

0 comments on commit 2f5025b

Please sign in to comment.