Skip to content

Commit a5e71c2

Browse files
author
Luca Forstner
committed
Add canary workflow
1 parent 0ef64c6 commit a5e71c2

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/canary.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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

0 commit comments

Comments
 (0)