File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : ' Build & Test'
2
+ on :
3
+ schedule :
4
+ # Runs "at minute 55 past every hour" (see https://crontab.guru)
5
+ - cron : ' 0 0 * * *'
6
+ pull_request :
7
+ workflow_dispatch :
8
+ inputs :
9
+ commit :
10
+ description : If the commit you want to test isn't the head of a branch, provide its SHA here
11
+ required : false
12
+
13
+ env :
14
+ # We pin the exact version to enforce reproducable builds with node + npm.
15
+ DEFAULT_NODE_VERSION : ' 16.15.1'
16
+ HEAD_COMMIT : ${{ github.event.inputs.commit || github.sha }}
17
+
18
+ jobs :
19
+ job_canary_test :
20
+ name : Run Canary Tests
21
+ runs-on : ubuntu-latest
22
+ timeout-minutes : 30
23
+ steps :
24
+ - name : ' Check out current commit'
25
+ uses : actions/checkout@v2
26
+ with :
27
+ ref : ${{ env.HEAD_COMMIT }}
28
+ - name : Set up Node
29
+ uses : actions/setup-node@v1
30
+ with :
31
+ node-version : ${{ env.DEFAULT_NODE_VERSION }}
32
+ - name : Install dependencies
33
+ run : yarn install --ignore-engines --frozen-lockfile
34
+ - name : Build packages
35
+ run : yarn build
36
+ - name : Run Canary Tests
37
+ env :
38
+ E2E_TEST_PUBLISH_SCRIPT_NODE_VERSION : ${{ env.DEFAULT_NODE_VERSION }}
39
+ E2E_TEST_AUTH_TOKEN : ${{ secrets.E2E_TEST_AUTH_TOKEN }}
40
+ E2E_TEST_DSN : ${{ secrets.E2E_TEST_DSN }}
41
+ CANARY_E2E_TEST : ' yes'
42
+ run : |
43
+ cd packages/e2e-tests
44
+ yarn test:e2e
You can’t perform that action at this time.
0 commit comments