-
Notifications
You must be signed in to change notification settings - Fork 25
90 lines (89 loc) · 4.34 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: Tests
on: [push]
jobs:
browserstack:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
browser:
- ChromeWindows
- Chrome80Windows
- Edge88
- Firefox78
- Opera70
- Safari17
- Safari14
- iOS
- AndroidChrome
- Android11Samsung
- Android6Chrome
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "18"
- name: install packages
run: npm install
- name: Tests on ${{ matrix.browser }}
run: npm run karma --browsers ${{ matrix.browser }}
# You can allow a job to pass when this step fails (e.g. temporarily if Browserstack tests
# are too flaky), by uncommenting the following line:
# continue-on-error: true
env:
BROWSER_STACK_ACCESS_KEY: ${{ secrets.BROWSER_STACK_ACCESS_KEY }}
BROWSER_STACK_USERNAME: ${{ secrets.BROWSER_STACK_USERNAME }}
TANKER_APPD_URL: ${{ secrets.TANKER_APPD_URL }}
TANKER_FILEKIT_BUCKET_NAME: ${{ secrets.TANKER_FILEKIT_BUCKET_NAME }}
TANKER_FILEKIT_BUCKET_REGION: ${{ secrets.TANKER_FILEKIT_BUCKET_REGION }}
TANKER_FILEKIT_CLIENT_ID: ${{ secrets.TANKER_FILEKIT_CLIENT_ID }}
TANKER_FILEKIT_CLIENT_SECRET: ${{ secrets.TANKER_FILEKIT_CLIENT_SECRET }}
TANKER_MANAGEMENT_API_ACCESS_TOKEN: ${{ secrets.TANKER_MANAGEMENT_API_ACCESS_TOKEN }}
TANKER_MANAGEMENT_API_DEFAULT_ENVIRONMENT_NAME: ${{ secrets.TANKER_MANAGEMENT_API_DEFAULT_ENVIRONMENT_NAME }}
TANKER_MANAGEMENT_API_URL: ${{ secrets.TANKER_MANAGEMENT_API_URL }}
TANKER_OIDC_CLIENT_ID: ${{ secrets.TANKER_OIDC_CLIENT_ID }}
TANKER_OIDC_CLIENT_SECRET: ${{ secrets.TANKER_OIDC_CLIENT_SECRET }}
TANKER_OIDC_KEVIN_EMAIL: ${{ secrets.TANKER_OIDC_KEVIN_EMAIL }}
TANKER_OIDC_KEVIN_REFRESH_TOKEN: ${{ secrets.TANKER_OIDC_KEVIN_REFRESH_TOKEN }}
TANKER_OIDC_MARTINE_EMAIL: ${{ secrets.TANKER_OIDC_MARTINE_EMAIL }}
TANKER_OIDC_MARTINE_REFRESH_TOKEN: ${{ secrets.TANKER_OIDC_MARTINE_REFRESH_TOKEN }}
TANKER_OIDC_PROVIDER: ${{ secrets.TANKER_OIDC_PROVIDER }}
TANKER_TRUSTCHAIND_URL: ${{ secrets.TANKER_TRUSTCHAIND_URL }}
TANKER_VERIFICATION_API_TEST_TOKEN: ${{ secrets.TANKER_VERIFICATION_API_TEST_TOKEN }}
node:
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "18"
- name: install packages
run: npm install
- name: build TypeScript
run: npm run build
- name: Tests on Node 18
run: npm run coverage
env:
BROWSER_STACK_ACCESS_KEY: ${{ secrets.BROWSER_STACK_ACCESS_KEY }}
BROWSER_STACK_USERNAME: ${{ secrets.BROWSER_STACK_USERNAME }}
TANKER_APPD_URL: ${{ secrets.TANKER_APPD_URL }}
TANKER_FILEKIT_BUCKET_NAME: ${{ secrets.TANKER_FILEKIT_BUCKET_NAME }}
TANKER_FILEKIT_BUCKET_REGION: ${{ secrets.TANKER_FILEKIT_BUCKET_REGION }}
TANKER_FILEKIT_CLIENT_ID: ${{ secrets.TANKER_FILEKIT_CLIENT_ID }}
TANKER_FILEKIT_CLIENT_SECRET: ${{ secrets.TANKER_FILEKIT_CLIENT_SECRET }}
TANKER_MANAGEMENT_API_ACCESS_TOKEN: ${{ secrets.TANKER_MANAGEMENT_API_ACCESS_TOKEN }}
TANKER_MANAGEMENT_API_DEFAULT_ENVIRONMENT_NAME: ${{ secrets.TANKER_MANAGEMENT_API_DEFAULT_ENVIRONMENT_NAME }}
TANKER_MANAGEMENT_API_URL: ${{ secrets.TANKER_MANAGEMENT_API_URL }}
TANKER_OIDC_CLIENT_ID: ${{ secrets.TANKER_OIDC_CLIENT_ID }}
TANKER_OIDC_CLIENT_SECRET: ${{ secrets.TANKER_OIDC_CLIENT_SECRET }}
TANKER_OIDC_KEVIN_EMAIL: ${{ secrets.TANKER_OIDC_KEVIN_EMAIL }}
TANKER_OIDC_KEVIN_REFRESH_TOKEN: ${{ secrets.TANKER_OIDC_KEVIN_REFRESH_TOKEN }}
TANKER_OIDC_MARTINE_EMAIL: ${{ secrets.TANKER_OIDC_MARTINE_EMAIL }}
TANKER_OIDC_MARTINE_REFRESH_TOKEN: ${{ secrets.TANKER_OIDC_MARTINE_REFRESH_TOKEN }}
TANKER_OIDC_PROVIDER: ${{ secrets.TANKER_OIDC_PROVIDER }}
TANKER_TRUSTCHAIND_URL: ${{ secrets.TANKER_TRUSTCHAIND_URL }}
TANKER_VERIFICATION_API_TEST_TOKEN: ${{ secrets.TANKER_VERIFICATION_API_TEST_TOKEN }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3