File tree 2 files changed +22
-1
lines changed
2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Playwright Tests
2
+ on : [deployment_status]
3
+ jobs :
4
+ test :
5
+ if : github.event.deployment_status.state == 'success'
6
+ timeout-minutes : 60
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@v4
10
+ - uses : actions/setup-node@v4
11
+ with :
12
+ node-version : lts/*
13
+ - name : Install dependencies
14
+ run : npm ci
15
+ - name : Install Playwright Browsers
16
+ run : npx playwright install --with-deps
17
+ - name : Run Playwright tests
18
+ run : npx playwright test
19
+ env :
20
+ BASE_URL : ${{ github.event.deployment_status.target_url }}
21
+ REPLAY_API_KEY : ${{ secrets.REPLAY_API_KEY }}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ dotenv.config();
5
5
6
6
const config : PlaywrightTestConfig = {
7
7
use : {
8
- baseURL : "http://localhost:3000"
8
+ baseURL : process . env . CI ? process . env . BASE_URL : "http://localhost:3000"
9
9
} ,
10
10
reporter : [
11
11
[
You can’t perform that action at this time.
0 commit comments