Skip to content

Commit 250d2c3

Browse files
committed
Build: Refer to commits of GitHub Actions, upgrade them
Also, set up automatic Dependabot updates of actions grouped into a single PR as Core does. Ref jquery/jquery#5503
1 parent 86e09e0 commit 250d2c3

File tree

4 files changed

+32
-14
lines changed

4 files changed

+32
-14
lines changed

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: "/"
5+
schedule:
6+
interval: monthly
7+
8+
# Group all dependabot version update PRs into one
9+
groups:
10+
github-actions:
11+
applies-to: version-updates
12+
patterns:
13+
- "*"

.github/workflows/node.js.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
name: Node.js CI
44

55
on:
6-
- push
7-
- pull_request
6+
push:
7+
branches: [ "main" ]
8+
pull_request:
9+
branches: [ "main" ]
810

911
jobs:
1012
build:
@@ -16,13 +18,14 @@ jobs:
1618
node-version: [18.x, 20.x]
1719

1820
steps:
19-
- name: Install xmllint
20-
run: sudo apt-get install -y libxml2-utils
21-
- uses: actions/checkout@v3
22-
- name: Use Node.js ${{ matrix.node-version }}
23-
uses: actions/setup-node@v3
24-
with:
25-
node-version: ${{ matrix.node-version }}
26-
cache: 'npm'
27-
- run: npm ci
28-
- run: npm test
21+
- name: Checkout
22+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
23+
- name: Install xmllint
24+
run: sudo apt-get install -y libxml2-utils
25+
- name: Use Node.js ${{ matrix.node-version }}
26+
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
cache: 'npm'
30+
- run: npm ci
31+
- run: npm test

.github/workflows/spider-check.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ jobs:
2121
# Site address to crawl
2222
MY_SITE: https://api.jquery.com
2323
steps:
24-
- uses: actions/checkout@v4
24+
- name: Checkout
25+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2526

2627
- name: Run hydra-link-checker
2728
run: |

.github/workflows/typesense.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ jobs:
1616
if: ${{ github.repository_owner == 'jquery' }} # skip on forks
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v3
19+
- name: Checkout
20+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2021
- name: Docsearch Scraper
2122
shell: bash
2223
run: |

0 commit comments

Comments
 (0)