Skip to content

Commit e4582ca

Browse files
authored
Merge pull request #283 from alphagov/add-actionlint-to-all-repos
Add Actionlint Checks
2 parents 10e936d + 0be6176 commit e4582ca

6 files changed

Lines changed: 22 additions & 10 deletions

File tree

.github/workflows/actionlint.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Lint GitHub Actions
2+
on:
3+
push:
4+
paths: ['.github/**']
5+
jobs:
6+
actionlint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
with:
11+
show-progress: false
12+
- uses: alphagov/govuk-infrastructure/.github/actions/actionlint@main

.github/workflows/check-code-hygiene.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ jobs:
1212

1313
steps:
1414
- name: Checkout code
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v4
1616

1717
- name: Cache Node.js modules
18-
uses: actions/cache@v2
18+
uses: actions/cache@v4
1919
with:
2020
path: ~/.npm
2121
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
2222
restore-keys: |
2323
${{ runner.os }}-node-
2424
2525
- name: Setup Node.js
26-
uses: actions/setup-node@v2
26+
uses: actions/setup-node@v4
2727
with:
2828
node-version: 16
2929

.github/workflows/check-test-coverage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ jobs:
1313

1414
steps:
1515
- name: Check out code
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v4
1717

1818
- name: Setup Node.js
19-
uses: actions/setup-node@v2
19+
uses: actions/setup-node@v4
2020
with:
2121
node-version: 16
2222

2323
- name: Cache Node.js modules
24-
uses: actions/cache@v2
24+
uses: actions/cache@v4
2525
with:
2626
path: ~/.npm
2727
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}

.github/workflows/production-create-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
env:
1717
commitmsg: ${{ github.event.head_commit.message }}
1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2020

2121
- name: Create Tag Name
2222
run: |
2323
GIT_TAG=$(date +v%Y.%m.%d)-$(git log --format=%h -1)
24-
echo "GIT_TAG=$GIT_TAG" >> $GITHUB_ENV
24+
echo "GIT_TAG=$GIT_TAG" >> "$GITHUB_ENV"
2525
2626
- name: Create Release
2727
id: create_release

.github/workflows/production-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
steps:
1717
- name: Checkout code
18-
uses: actions/checkout@v2
18+
uses: actions/checkout@v4
1919
with:
2020
ref: ${{ github.event.inputs.tag }}
2121

.github/workflows/staging-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
environment: staging
2121
steps:
2222
- name: Checkout code
23-
uses: actions/checkout@v2
23+
uses: actions/checkout@v4
2424

2525
- name: Install Dependencies
2626
run: npm ci

0 commit comments

Comments
 (0)