Skip to content

Commit 98c13d4

Browse files
committed
Use Playwright in CI for now
1 parent 1e4efd9 commit 98c13d4

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

.github/workflows/test.yml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,39 @@
11
name: Test
22
on: push
3-
concurrency: sauce-labs
3+
concurrency: test
4+
permissions:
5+
contents: read
46
jobs:
57
test:
68
runs-on: ubuntu-latest
7-
name: Sauce Labs
9+
name: Playwright
810
steps:
911
- name: Checkout
1012
uses: actions/checkout@v3
11-
- name: Use node 14
13+
- name: Use node 16
1214
uses: actions/setup-node@v3
1315
with:
14-
node-version: 14
16+
node-version: 16
1517
- name: Install
1618
run: npm install
1719
env:
1820
# Download Sauce Connect binary now instead of on first run
1921
SAUCE_CONNECT_DOWNLOAD_ON_INSTALL: true
22+
- name: Add host
23+
run: echo "127.0.0.1 airtap.local" | sudo tee -a /etc/hosts
24+
- name: Install Playwright
25+
run: npx playwright install-deps
26+
- name: Test
27+
run: npm test
2028
# TODO
21-
# - name: Add host
22-
# run: echo "127.0.0.1 airtap.local" | sudo tee -a /etc/hosts
2329
# - name: Test
2430
# run: npm run test-browsers
2531
# env:
2632
# SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
2733
# SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
28-
# - name: Coverage
29-
# run: npm run coverage
30-
# - name: Codecov
31-
# uses: codecov/codecov-action@v2
32-
# with:
33-
# file: coverage/lcov.info
34+
- name: Coverage
35+
run: npm run coverage
36+
- name: Codecov
37+
uses: codecov/codecov-action@v2
38+
with:
39+
file: coverage/lcov.info

0 commit comments

Comments
 (0)