Skip to content

Commit

Permalink
CI: update GitHub Actions workflow files
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]>
  • Loading branch information
revi committed Nov 5, 2024
1 parent 16cba2e commit 1d54fb5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
---
name: "Lint code"
on: [pull_request, push]

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

- uses: shivammathur/setup-php@v2
with:
Expand All @@ -21,6 +23,6 @@ jobs:
name: Run eslint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: npm install --location=global eslint eslint-config-wikimedia eslint-plugin-json
- run: eslint js --ignore-pattern 'lib/'
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 1d54fb5

Please sign in to comment.