forked from ringcentral/ringcentral-web-phone
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.06 KB
/
tests.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
name: Tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 21
registry-url: 'https://registry.npmjs.org'
- run: yarn install
- run: yarn lint
- run: yarn build
- name: test
env:
RC_WP_CLIENT_ID: ${{ secrets.RC_WP_CLIENT_ID }}
RC_WP_CLIENT_SECRET: ${{ secrets.RC_WP_CLIENT_SECRET }}
RC_WP_SERVER: ${{ secrets.RC_WP_SERVER }}
RC_WP_CALLER_JWT_TOKEN: ${{ secrets.RC_WP_CALLER_JWT_TOKEN }}
RC_WP_RECEIVER_JWT_TOKEN: ${{ secrets.RC_WP_RECEIVER_JWT_TOKEN }}
run: |
yarn test
yarn playwright install --with-deps
yarn test2
- name: ⬆ Upload report
uses: actions/upload-artifact@v4
with:
path: screenshots
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: .coverage/lcov.info