-
-
Notifications
You must be signed in to change notification settings - Fork 6
39 lines (39 loc) · 1.03 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Test
on: push
concurrency: test
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
name: Playwright
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use node 16
uses: actions/setup-node@v4
with:
node-version: 16
- name: Install
run: npm install
env:
# Download Sauce Connect binary now instead of on first run
SAUCE_CONNECT_DOWNLOAD_ON_INSTALL: true
- name: Add host
run: echo "127.0.0.1 airtap.local" | sudo tee -a /etc/hosts
- name: Install Playwright
run: npx playwright install-deps
- name: Test
run: npm test
# TODO
# - name: Test
# run: npm run test-browsers
# env:
# SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
# SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
- name: Coverage
run: npm run coverage
- name: Codecov
uses: codecov/codecov-action@v3
with:
file: coverage/lcov.info