Skip to content

Commit 9a9349a

Browse files
authored
Quarantine tests (#4085)
1 parent 90ee30c commit 9a9349a

File tree

2 files changed

+45
-8
lines changed

2 files changed

+45
-8
lines changed

.github/workflows/pullrequests.yml

Lines changed: 43 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,6 @@ jobs:
7878
echo TURBO_TOKEN=${{ secrets.TURBO_TOKEN }} >> .env
7979
echo TURBO_REMOTE_CACHE_SIGNATURE_KEY=${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }} >> .env
8080
81-
- name: Install workerd Dependencies
82-
if: ${{ runner.os == 'Linux' }}
83-
run: |
84-
export DEBIAN_FRONTEND=noninteractive
85-
sudo apt-get update
86-
sudo apt-get install -y libc++1
87-
8881
- name: Install NPM Dependencies
8982
run: pnpm install --frozen-lockfile
9083

@@ -102,3 +95,46 @@ jobs:
10295

10396
- name: Report Code Coverage
10497
uses: codecov/codecov-action@v3
98+
99+
quarantine:
100+
name: "Quarantined Tests"
101+
strategy:
102+
matrix:
103+
os: [ubuntu-latest, windows-latest, macos-latest]
104+
runs-on: ${{ matrix.os }}
105+
steps:
106+
- name: Checkout Repo
107+
uses: actions/checkout@v3
108+
with:
109+
fetch-depth: 0
110+
- uses: pnpm/action-setup@v2
111+
with:
112+
version: 8
113+
- name: Use Node.js ${{ env.node-version }}
114+
uses: actions/setup-node@v3
115+
with:
116+
node-version: ${{ env.node-version }}
117+
cache: "pnpm"
118+
119+
- name: "Create .env file"
120+
run: |
121+
touch .env
122+
echo TURBO_API=${{ secrets.TURBO_API }} >> .env
123+
echo TURBO_TEAM=${{ secrets.TURBO_TEAM }} >> .env
124+
echo TURBO_TOKEN=${{ secrets.TURBO_TOKEN }} >> .env
125+
echo TURBO_REMOTE_CACHE_SIGNATURE_KEY=${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }} >> .env
126+
127+
- name: Install NPM Dependencies
128+
run: pnpm install --frozen-lockfile
129+
130+
- name: Run builds
131+
run: pnpm run build
132+
env:
133+
NODE_ENV: "production"
134+
135+
- name: Run tests
136+
run: pnpm run test:ci:quarantine
137+
env:
138+
TMP_CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
139+
TMP_CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
140+
NODE_OPTIONS: "--max_old_space_size=8192"

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"fix": "pnpm run prettify && dotenv -- turbo check:lint -- --fix",
2020
"prettify": "prettier . --write --ignore-unknown",
2121
"test": "dotenv -- turbo test --concurrency=1",
22-
"test:ci": "dotenv -- turbo test:ci --filter=!local-mode-tests --filter=!playground-preview-worker --filter=!no-bundle-import --concurrency=1",
22+
"test:ci": "dotenv -- turbo test:ci --filter=!local-mode-tests --filter=!playground-preview-worker --filter=!no-bundle-import --filter=!workers.new --concurrency=1",
23+
"test:ci:quarantine": "dotenv -- turbo test:ci --filter=local-mode-tests --filter=playground-preview-worker --filter=no-bundle-import --filter=workers.new --concurrency=1",
2324
"test:watch": "turbo test:watch",
2425
"type:tests": "dotenv -- turbo type:tests",
2526
"gen:package": "turbo gen package"

0 commit comments

Comments
 (0)