Skip to content

Commit 551bfaa

Browse files
revizlzleking
andauthored
CI: update GitHub Actions workflow files (#34)
1. Use latest `actions/checkout` version, suppressing old node version warning. 2. Run ubuntu-latest. 3. Fix some yaml syntax. 4. Use latest `actions/stale` version, suppressing old node version warning. Signed-off-by: Yongmin Hong <[email protected]> Co-authored-by: zlzleking <[email protected]>
1 parent 4952517 commit 551bfaa

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

.github/workflows/lint.yml

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: "Lint code"
23
on: [pull_request, push]
34

@@ -6,24 +7,29 @@ jobs:
67
name: Run phpcs
78
runs-on: ubuntu-22.04
89
steps:
9-
- uses: actions/checkout@v2
10+
- name: Checkout code
11+
uses: actions/checkout@v4
1012

11-
- uses: shivammathur/setup-php@v2
13+
- name: Setup PHP
14+
uses: shivammathur/setup-php@v2
1215
with:
1316
php-version: '8.1'
1417
tools: composer:v2
1518

1619
- run: composer install
1720

18-
- run: composer test
21+
- name: Excute test
22+
run: composer test
1923

2024
eslint:
2125
name: Run eslint
2226
runs-on: ubuntu-latest
2327
steps:
24-
- uses: actions/checkout@v2
28+
- name: Checkout code
29+
uses: actions/checkout@v4
2530

26-
- uses: actions/setup-node@v3
31+
- name: Setup node
32+
uses: actions/setup-node@v3
2733
with:
2834
node-version: 18.x
2935

.github/workflows/stale.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: "Automatically close stale issues/PRs"
23
on:
34
workflow_dispatch:
@@ -9,7 +10,7 @@ jobs:
910
stale:
1011
runs-on: ubuntu-latest
1112
steps:
12-
- uses: actions/stale@v4
13+
- uses: actions/stale@v9
1314
with:
1415
stale-issue-message: 'This issue is stale because it has been open for 180 days with no activity. Remove stale label or comment on it or it will be closed in 2 weeks.'
1516
stale-pr-message: 'This pull request is stale because it has been open for 180 days with no activity. Remove stale label or comment on it or it will be closed in 2 weeks.'

0 commit comments

Comments
 (0)