-
Notifications
You must be signed in to change notification settings - Fork 5
52 lines (50 loc) · 1.71 KB
/
validate.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
name: Validate
on: [push, workflow_call]
jobs:
verify:
name: Verify Code
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- run: pnpm install
- run: pnpm build
- run: pnpm check
- run: pnpm test
- run: node bin/publish-extension.cjs --help
e2e-test:
name: E2E Publish Test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- run: pnpm install
- 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'