Skip to content

Commit

Permalink
Build: Refer to commits of GitHub Actions, upgrade them
Browse files Browse the repository at this point in the history
Also, set up automatic Dependabot updates of actions grouped into a single PR
as Core does.

Ref jquery/jquery#5503
  • Loading branch information
mgol committed Sep 14, 2024
1 parent 96a447a commit c1c2ecc
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 14 deletions.
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: monthly

# Group all dependabot version update PRs into one
groups:
github-actions:
applies-to: version-updates
patterns:
- "*"
26 changes: 14 additions & 12 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
name: Node.js CI

on:
- push
- pull_request
pull_request:
push:
branches-ignore: "dependabot/**"

jobs:
build:
Expand All @@ -16,13 +17,14 @@ jobs:
node-version: [18.x, 20.x]

steps:
- name: Install xmllint
run: sudo apt-get install -y libxml2-utils
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm test
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Install xmllint
run: sudo apt-get install -y libxml2-utils
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm test
3 changes: 2 additions & 1 deletion .github/workflows/spider-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:
# Site address to crawl
MY_SITE: https://api.jquery.com
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Run hydra-link-checker
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/typesense.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ jobs:
if: ${{ github.repository_owner == 'jquery' }} # skip on forks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Docsearch Scraper
shell: bash
run: |
Expand Down

0 comments on commit c1c2ecc

Please sign in to comment.