File tree Expand file tree Collapse file tree 3 files changed +24
-5
lines changed Expand file tree Collapse file tree 3 files changed +24
-5
lines changed Original file line number Diff line number Diff line change 1
1
name : Publish
2
2
on :
3
- push :
4
- branches : [main]
3
+ workflow_run :
4
+ workflows : ['Playwright-Tests']
5
+ types :
6
+ - completed
5
7
6
8
jobs :
7
9
deployment :
8
10
timeout-minutes : 60
9
11
name : " deploy to github"
10
12
runs-on : ubuntu-latest
13
+ if : github.event_name != 'pull_request'
11
14
steps :
12
- - name : deploy to github page
13
- run : npm run deploy
15
+ - uses : actions/checkout@v4
16
+ - uses : actions/setup-node@v4
17
+ with :
18
+ node-version : lts/*
19
+ - name : Install dependencies
20
+ run : npm ci
21
+ - name : Lint
22
+ run : npm run lint
23
+ - name : Build
24
+ run : npm run build
25
+ - name : Deploy to Github Pages
26
+ uses : peaceiris/actions-gh-pages@v3
27
+ with :
28
+ github_token : ${{ secrets.GITHUB_TOKEN }}
29
+ publish_dir : build
Original file line number Diff line number Diff line change 1
- name : Playwright Tests
1
+ name : Playwright- Tests
2
2
on :
3
3
push :
4
4
branches : [main]
16
16
node-version : lts/*
17
17
- name : Install dependencies
18
18
run : npm ci
19
+ - name : Lint
20
+ run : npm run lint
19
21
- name : Install Playwright Browsers
20
22
run : npx playwright install --with-deps
21
23
- name : Run Playwright tests
Original file line number Diff line number Diff line change 29
29
"build" : " react-scripts build" ,
30
30
"test" : " react-scripts test" ,
31
31
"test:e2e" : " npx playwright test" ,
32
+ "lint" : " npx eslint ." ,
32
33
"eject" : " react-scripts eject"
33
34
},
34
35
"eslintConfig" : {
You can’t perform that action at this time.
0 commit comments