Skip to content

Commit 3422665

Browse files
authored
Merge branch 'main' into patch-1
2 parents f517341 + dbb9b12 commit 3422665

22 files changed

Lines changed: 59 additions & 54 deletions

.github/allowed-actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// can be added it this list.
55

66
module.exports = [
7-
'actions/cache@d1255ad9362389eac595a9ae406b8e8cb3331f16', //actions/cache@v2.1.2
7+
'actions/cache@0781355a23dac32fd3bac414512f4b903437991a', //actions/cache@v2.1.3
88
'actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f', //actions/checkout@v2.3.4
99
'actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9', //actions/script@v3.0.0
1010
'actions/labeler@5f867a63be70efff62b767459b009290364495eb', //actions/labeler@v2.2.0

.github/workflows/automerge-dependencies.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
name: Auto Merge Dependency Updates
22

33
on:
4-
- pull_request
5-
- pull_request_review
4+
pull_request:
5+
paths:
6+
- "package*.json"
7+
- "Gemfile*"
8+
- "Dockerfile"
9+
- ".github/workflows/**"
10+
pull_request_review:
11+
types:
12+
- edited
13+
- submitted
614

715
jobs:
816
run:

.github/workflows/browser-test.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,18 @@ jobs:
2020
paths: '[".github/workflows/browser-test.yml","assets/**", "content/**", "data/**", "includes/**", "javascripts/**", "jest-puppeteer.config.js", "jest.config.js", "layouts/**", "lib/**", "middleware/**", "package-lock.json", "package.json", "server.js", "translations/**", "webpack.config.js"]'
2121
build:
2222
needs: see_if_should_skip
23+
if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
2324
runs-on: ubuntu-latest
2425
steps:
25-
# Each of these ifs needs to be repeated at each step to make sure the required check still runs
26-
# Even if if doesn't do anything
27-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
28-
name: Checkout
26+
- name: Checkout
2927
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
3028

31-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
32-
name: Install
29+
- name: Install
3330
uses: ianwalter/puppeteer@12728ddef82390d1ecd4732fb543f62177392fbb
3431
with:
3532
args: npm ci
3633

37-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
38-
name: Test
34+
- name: Test
3935
uses: ianwalter/puppeteer@12728ddef82390d1ecd4732fb543f62177392fbb
4036
with:
4137
args: npm run browser-test

.github/workflows/dry-run-sync-algolia-search-indices.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
with:
1616
node-version: 14.x
1717
- name: cache node modules
18-
uses: actions/cache@d1255ad9362389eac595a9ae406b8e8cb3331f16
18+
uses: actions/cache@0781355a23dac32fd3bac414512f4b903437991a
1919
with:
2020
path: ~/.npm
2121
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}

.github/workflows/js-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
echo "::set-output name=dir::$(npm config get cache)"
4343
4444
- name: Cache node modules
45-
uses: actions/cache@d1255ad9362389eac595a9ae406b8e8cb3331f16
45+
uses: actions/cache@0781355a23dac32fd3bac414512f4b903437991a
4646
with:
4747
path: ${{ steps.npm-cache.outputs.dir }}
4848
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}

.github/workflows/pa11y.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
echo "::set-output name=dir::$(npm config get cache)"
1717
1818
- name: Cache node modules
19-
uses: actions/cache@d1255ad9362389eac595a9ae406b8e8cb3331f16
19+
uses: actions/cache@0781355a23dac32fd3bac414512f4b903437991a
2020
with:
2121
path: ${{ steps.npm-cache.outputs.dir }}
2222
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}

.github/workflows/sync-algolia-search-indices.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
with:
1919
node-version: 14.x
2020
- name: cache node modules
21-
uses: actions/cache@d1255ad9362389eac595a9ae406b8e8cb3331f16
21+
uses: actions/cache@0781355a23dac32fd3bac414512f4b903437991a
2222
with:
2323
path: ~/.npm
2424
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}

.github/workflows/test-translations.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
echo "::set-output name=dir::$(npm config get cache)"
2828
2929
- name: Cache node modules
30-
uses: actions/cache@d1255ad9362389eac595a9ae406b8e8cb3331f16
30+
uses: actions/cache@0781355a23dac32fd3bac414512f4b903437991a
3131
with:
3232
path: ${{ steps.npm-cache.outputs.dir }}
3333
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
@@ -65,7 +65,7 @@ jobs:
6565
echo "::set-output name=dir::$(npm config get cache)"
6666
6767
- name: Cache node modules
68-
uses: actions/cache@d1255ad9362389eac595a9ae406b8e8cb3331f16
68+
uses: actions/cache@0781355a23dac32fd3bac414512f4b903437991a
6969
with:
7070
path: ${{ steps.npm-cache.outputs.dir }}
7171
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}

.github/workflows/test-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
echo "::set-output name=dir::$(npm config get cache)"
3333
3434
- name: Cache node modules
35-
uses: actions/cache@d1255ad9362389eac595a9ae406b8e8cb3331f16
35+
uses: actions/cache@0781355a23dac32fd3bac414512f4b903437991a
3636
with:
3737
path: ${{ steps.npm-cache.outputs.dir }}
3838
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}

.github/workflows/test.yml

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -31,50 +31,42 @@ jobs:
3131

3232
test:
3333
needs: see_if_should_skip
34+
if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
3435
runs-on: ubuntu-latest
3536
timeout-minutes: 60
3637
strategy:
3738
fail-fast: false
3839
matrix:
3940
test-group: [content, meta, rendering, routing, unit, links-and-images]
4041
steps:
41-
# Each of these ifs needs to be repeated at each step to make sure the required check still runs
42-
# Even if if doesn't do anything
43-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
44-
name: Check out repo
42+
- name: Check out repo
4543
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
4644

47-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
48-
name: Setup node
45+
- name: Setup node
4946
uses: actions/setup-node@56899e050abffc08c2b3b61f3ec6a79a9dc3223d
5047
with:
5148
node-version: 14.x
5249

53-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
54-
name: Get npm cache directory
50+
- name: Get npm cache directory
5551
id: npm-cache
5652
run: |
5753
echo "::set-output name=dir::$(npm config get cache)"
5854
59-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
60-
name: Cache node modules
61-
uses: actions/cache@d1255ad9362389eac595a9ae406b8e8cb3331f16
55+
- name: Cache node modules
56+
uses: actions/cache@0781355a23dac32fd3bac414512f4b903437991a
6257
with:
6358
path: ${{ steps.npm-cache.outputs.dir }}
6459
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
6560
restore-keys: |
6661
${{ runner.os }}-node-
6762
68-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
69-
name: Install dependencies
63+
- name: Install dependencies
7064
run: npm ci
7165

72-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
73-
name: Run build script
66+
- name: Run build script
7467
run: npm run build
7568

76-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
77-
name: Run tests
69+
- name: Run tests
7870
run: npx jest tests/${{ matrix.test-group }}/
7971
env:
8072
NODE_OPTIONS: "--max_old_space_size=4096"

0 commit comments

Comments
 (0)