Skip to content

Commit f91c365

Browse files
authored
chore: update playwright workflow (#4)
* chore: update playwright workflow * chore: move package.json to root * chore: remove custom token from test.yaml * chore: remove unnecessary permissions from test * chore: remove call to nonexistent tests
1 parent 3c9f7de commit f91c365

File tree

6 files changed

+1583
-1532
lines changed

6 files changed

+1583
-1532
lines changed

.github/workflows/playwright.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Playwright Tests
22
on:
33
push:
4-
branches: [ main, master ]
4+
branches: [ main ]
55
pull_request:
6-
branches: [ main, master ]
6+
branches: [ main ]
77
jobs:
88
test:
99
timeout-minutes: 60

.github/workflows/test.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,15 @@ jobs:
3232
github.event.review.state == 'approved')
3333
runs-on: ubuntu-latest
3434
steps:
35-
- uses: actions/checkout@v2
36-
with:
37-
token: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }} # required otherwise GitHub blocks infinite loops in pushes originating in an action
35+
- uses: actions/checkout@v4
3836
if: github.actor != 'dependabot[bot]'
39-
- uses: actions/checkout@v2
37+
- uses: actions/checkout@v4
4038
if: github.actor == 'dependabot[bot]'
41-
- uses: actions/cache@v2
39+
- uses: actions/cache@v4
4240
with:
4341
path: ~/.npm
4442
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
4543
restore-keys: |
4644
${{ runner.os }}-node
4745
- run: npm i
48-
- run: npm run test:jest
46+
# no tests yet - run: npm run test:jest

.gitignore

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
# Ignore node_modules in all subdirectories of samples/
2-
samples/**/node_modules/
1+
# Ignore all node_modules including in subdirectories for samples/
2+
**/node_modules/
33
samples/.env
4-
node_modules/
4+
5+
# (temporary) Ignore dist files generated by build
6+
**/dist/
7+
8+
# Ignore playwright outputs
9+
/test-results/
10+
/playwright-report/
11+
/blob-report/
12+
/playwright/.cache/

0 commit comments

Comments
 (0)