Skip to content

Commit b5e6d8c

Browse files
author
Luca Forstner
committed
Update workflow
1 parent a5e71c2 commit b5e6d8c

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

.github/CANARY_FAILURE_TEMPLATE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: Canary tests failed
3+
labels: 'Status: Untriaged'
4+
---
5+
Canary tests failed: {{ env.RUN_LINK }}

.github/workflows/canary.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'Build & Test'
1+
name: 'Canary Tests'
22
on:
33
schedule:
44
# Runs "at minute 55 past every hour" (see https://crontab.guru)
@@ -11,10 +11,12 @@ on:
1111
required: false
1212

1313
env:
14-
# We pin the exact version to enforce reproducable builds with node + npm.
15-
DEFAULT_NODE_VERSION: '16.15.1'
1614
HEAD_COMMIT: ${{ github.event.inputs.commit || github.sha }}
1715

16+
permissions:
17+
contents: read
18+
issues: write
19+
1820
jobs:
1921
job_canary_test:
2022
name: Run Canary Tests
@@ -28,7 +30,8 @@ jobs:
2830
- name: Set up Node
2931
uses: actions/setup-node@v1
3032
with:
31-
node-version: ${{ env.DEFAULT_NODE_VERSION }}
33+
# ember won't build under node 16, at least not with the versions of the ember build tools we use
34+
node-version: '14'
3235
- name: Install dependencies
3336
run: yarn install --ignore-engines --frozen-lockfile
3437
- name: Build packages
@@ -42,3 +45,11 @@ jobs:
4245
run: |
4346
cd packages/e2e-tests
4447
yarn test:e2e
48+
- name: Create Issue
49+
if: failure()
50+
- uses: JasonEtco/create-an-issue@1a16035489d05041b9af40b970f02e301c52ffba
51+
env:
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53+
RUN_LINK: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
54+
with:
55+
filename: .github/CANARY_FAILURE_TEMPLATE.md

0 commit comments

Comments
 (0)