-
Notifications
You must be signed in to change notification settings - Fork 5
82 lines (67 loc) · 2.21 KB
/
verify.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
name: Verify
on: [push, workflow_call]
jobs:
verify:
name: Verify Code
runs-on: ubuntu-22.04
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- uses: pnpm/[email protected]
name: Install PNPM
with:
version: 8
- name: Install Node
uses: actions/setup-node@v2
with:
node-version: 18
cache: 'pnpm'
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Formatting
run: pnpm format:check
- name: Type Check
run: pnpm compile
- name: Build
run: pnpm build
- name: Lint
run: pnpm lint
- name: Test
run: pnpm test
- name: Check CLI
run: node bin/publish-extension.cjs --help
e2e-test:
name: E2E Publish Test
runs-on: ubuntu-22.04
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- uses: pnpm/[email protected]
name: Install PNPM
with:
version: 8
- name: Install Node 16
uses: actions/setup-node@v2
with:
node-version: 18
cache: 'pnpm'
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Publish
run: ./scripts/dev.sh all
env:
CHROME_EXTENSION_ID: ${{ secrets.TEST_CHROME_EXTENSION_ID }}
CHROME_CLIENT_ID: ${{ secrets.TEST_CHROME_CLIENT_ID }}
CHROME_CLIENT_SECRET: ${{ secrets.TEST_CHROME_CLIENT_SECRET }}
CHROME_REFRESH_TOKEN: ${{ secrets.TEST_CHROME_REFRESH_TOKEN }}
CHROME_SKIP_SUBMIT_REVIEW: 'true'
CHROME_PUBLISH_TARGET: trustedTesters
FIREFOX_EXTENSION_ID: ${{ secrets.TEST_FIREFOX_EXTENSION_ID }}
FIREFOX_JWT_ISSUER: ${{ secrets.TEST_FIREFOX_JWT_ISSUER }}
FIREFOX_JWT_SECRET: ${{ secrets.TEST_FIREFOX_JWT_SECRET }}
FIREFOX_CHANNEL: unlisted
EDGE_PRODUCT_ID: ${{ secrets.TEST_EDGE_PRODUCT_ID }}
EDGE_CLIENT_ID: ${{ secrets.TEST_EDGE_CLIENT_ID }}
EDGE_CLIENT_SECRET: ${{ secrets.TEST_EDGE_CLIENT_SECRET }}
EDGE_ACCESS_TOKEN_URL: ${{ secrets.TEST_EDGE_ACCESS_TOKEN_URL }}
EDGE_SKIP_SUBMIT_REVIEW: 'true'