forked from ng-bootstrap/ng-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (46 loc) · 1.45 KB
/
ci.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
40
41
42
43
44
45
46
name: ci
on: [push, pull_request]
jobs:
ci:
runs-on: ubuntu-latest
env:
SAUCE_USERNAME: pkozlowski
SAUCE_ACCESS_KEY: c5ea8b730bc9-378b-43e4-6e34-e66aa371
BROWSER_PROVIDER_READY_FILE: /tmp/sauce-connect-ready
LOGS_DIR: /tmp/logs
steps:
- uses: actions/checkout@v3
- run: mkdir -p $LOGS_DIR && ./scripts/sauce_connect_setup.sh
- uses: actions/setup-node@v3
with:
node-version: 16
- id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn --frozen-lockfile
- run: npx playwright install-deps
- run: npx playwright install
- run: yarn ci && yarn scripts:test
- uses: codecov/codecov-action@v3
with:
file: coverage/lcov.info
flags: unit
- uses: codecov/codecov-action@v3
with:
file: coverage-e2e/lcov.info
flags: e2e
- uses: actions/upload-artifact@v3
with:
name: test-reports
path: test-reports
if: ${{ always() }}
- run: cat $LOGS_DIR/*
- run: ./scripts/sauce_connect_block.sh
- run: yarn saucelabs
- run: ./scripts/sauce_connect_teardown.sh
if: ${{ always() }}