Skip to content

Commit

Permalink
CI: update GitHub Actions workflow files (#34)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
revi and zlzleking authored Nov 24, 2024
1 parent 4952517 commit 551bfaa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: "Lint code"
on: [pull_request, push]

Expand All @@ -6,24 +7,29 @@ jobs:
name: Run phpcs
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Checkout code
uses: actions/checkout@v4

- uses: shivammathur/setup-php@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
tools: composer:v2

- run: composer install

- run: composer test
- name: Excute test
run: composer test

eslint:
name: Run eslint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout code
uses: actions/checkout@v4

- uses: actions/setup-node@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18.x

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: "Automatically close stale issues/PRs"
on:
workflow_dispatch:
Expand All @@ -9,7 +10,7 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4
- uses: actions/stale@v9
with:
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.'
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.'
Expand Down

0 comments on commit 551bfaa

Please sign in to comment.