Skip to content

Commit 23377aa

Browse files
committed
refactor the workflows
1 parent fab8823 commit 23377aa

5 files changed

Lines changed: 234 additions & 408 deletions

File tree

.github/workflows/lint.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,15 @@ jobs:
1313
steps:
1414
- name: Checkout
1515
uses: actions/checkout@v6
16-
with:
17-
fetch-depth: 0
1816

1917
- name: Install dependencies
2018
run: npm install
2119

2220
- name: Lint
23-
run: |
24-
npm run lint
21+
run: npm run lint
2522

2623
- name: Validate
27-
run: |
28-
npm run validate
24+
run: npm run validate
2925

3026
dependabot:
3127
name: Dependabot auto-merge
@@ -41,12 +37,10 @@ jobs:
4137
- name: Dependabot metadata
4238
id: metadata
4339
uses: dependabot/fetch-metadata@v2
44-
with:
45-
github-token: "${{ secrets.GITHUB_TOKEN }}"
4640

4741
- name: Enable auto-merge for Dependabot PRs
4842
if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'
49-
run: gh pr merge --auto --squash "$PR_URL"
43+
run: gh pr merge --admin --squash "$PR_URL"
5044
env:
5145
PR_URL: ${{github.event.pull_request.html_url}}
52-
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
46+
GH_TOKEN: ${{github.token}}

.github/workflows/test.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,12 @@ jobs:
2727
uses: actions/checkout@v6
2828
with:
2929
ref: ${{ github.event.pull_request.head.sha }}
30-
fetch-depth: 0
3130

3231
- name: Install dependencies
3332
run: npm install
3433

3534
- name: Validate
36-
run: |
37-
npm run validate
35+
run: npm run validate
3836

3937
- name: Run WebPageTest with unit tests
4038
id: unit-test

.github/workflows/upload.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
name: Test and upload to GCP
1717
runs-on: ubuntu-latest
1818
environment: GCP_ACCESS
19-
# Only run on main repo on and PRs that match the main repo
19+
# Only run on main repo
2020
if: ${{ github.repository == 'HTTPArchive/wappalyzer' }}
2121
steps:
2222
- name: Checkout
@@ -27,7 +27,7 @@ jobs:
2727
- name: Set up Node.js
2828
uses: actions/setup-node@v6
2929
with:
30-
node-version: 22
30+
node-version: 24
3131

3232
- name: Install dependencies
3333
run: npm install

0 commit comments

Comments
 (0)