Skip to content

Commit 7990a79

Browse files
authored
backport of commit e465997
1 parent fd20f66 commit 7990a79

File tree

364 files changed

+4023
-13865
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

364 files changed

+4023
-13865
lines changed

.changelog/24415.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

.changelog/24601.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

.changelog/24724.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

.changelog/24785.txt

Lines changed: 0 additions & 11 deletions
This file was deleted.

.changelog/24849.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

.changelog/24909.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/pull_request_template.md

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
run: make deps
9999

100100
- name: Setup node and yarn
101-
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
101+
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
102102
with:
103103
node-version: "18"
104104
cache-dependency-path: "ui/yarn.lock"
@@ -150,7 +150,7 @@ jobs:
150150
run: make deps
151151

152152
- name: Setup node and yarn
153-
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
153+
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
154154
with:
155155
node-version: "18"
156156
cache-dependency-path: "ui/yarn.lock"
@@ -275,7 +275,7 @@ jobs:
275275
run: make deps
276276

277277
- name: Setup node and yarn
278-
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
278+
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
279279
with:
280280
node-version: "18"
281281
cache-dependency-path: "ui/yarn.lock"

.github/workflows/checks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
run: git config --global url.'https://${{ env.ELEVATED_GITHUB_TOKEN }}@github.com'.insteadOf 'https://github.com'
4444
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
4545
with:
46-
cache: ${{ contains(runner.name, 'Github Actions') }}
46+
cache: true
4747
go-version-file: .go-version
4848
cache-dependency-path: '**/go.sum'
4949
- name: Run make check
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name: Ember test audit comparison
2+
on:
3+
pull_request:
4+
paths:
5+
- '.github/workflows/ember*'
6+
- 'ui/**'
7+
8+
defaults:
9+
run:
10+
working-directory: ui
11+
12+
# There’s currently no way to share steps between jobs so there’s a lot of duplication
13+
# for running the audit for the base and PR.
14+
jobs:
15+
time-base:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
19+
with:
20+
ref: ${{ github.event.pull_request.base.sha }}
21+
- uses: nanasess/setup-chromedriver@42cc2998329f041de87dc3cfa33a930eacd57eaa # v2.2.2
22+
- name: Use Node.js
23+
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
24+
with:
25+
node-version: '18'
26+
- run: yarn --frozen-lockfile
27+
- run: mkdir -p /tmp/test-reports
28+
- run: npx ember-test-audit 1 --json --output ../base-audit.json
29+
- name: Upload result
30+
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
31+
with:
32+
name: base-audit
33+
path: base-audit.json
34+
time-pr:
35+
runs-on: ubuntu-latest
36+
steps:
37+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
38+
- uses: nanasess/setup-chromedriver@42cc2998329f041de87dc3cfa33a930eacd57eaa # v2.2.2
39+
- name: Use Node.js
40+
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
41+
with:
42+
node-version: '18'
43+
- run: yarn --frozen-lockfile
44+
- run: mkdir -p /tmp/test-reports
45+
- run: npx ember-test-audit 1 --json --output ../pr-audit.json
46+
- name: Upload result
47+
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
48+
with:
49+
name: pr-audit
50+
path: pr-audit.json
51+
compare:
52+
needs: [time-base, time-pr]
53+
runs-on: ubuntu-latest
54+
steps:
55+
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
56+
with:
57+
name: base-audit
58+
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
59+
with:
60+
name: pr-audit
61+
- uses: backspace/ember-test-audit-comparison-action@21e9492d0033bc7e84b6189ae94537a6ed045cfa # v2
62+
with:
63+
base-report-path: base-audit.json
64+
comparison-report-path: pr-audit.json
65+
base-identifier: ${{ github.event.pull_request.base.ref }}
66+
comparison-identifier: ${{ github.event.pull_request.head.sha }}
67+
timing-output-path: audit-diff.md
68+
flakiness-output-path: flakiness-report.md
69+
- uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 # v2.9.0
70+
with:
71+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72+
path: audit-diff.md
73+
- name: Check for existence of flakiness report
74+
id: check_file
75+
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3.0.0
76+
with:
77+
files: "flakiness-report.md"
78+
- name: comment PR
79+
if: steps.check_file.outputs.files_exists == 'true'
80+
uses: mshick/add-pr-comment@b8f338c590a895d50bcbfa6c5859251edc8952fc # v2.8.2
81+
env:
82+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
83+
with:
84+
message-path: flakiness-report.md
85+
permissions:
86+
contents: read
87+
pull-requests: write

0 commit comments

Comments
 (0)