Skip to content

Commit

Permalink
ci: bump actions to the latest version
Browse files Browse the repository at this point in the history
Bump all actions to the latest versions to bring in all the related
fixes.
  • Loading branch information
stevenh committed Oct 23, 2023
1 parent df4b775 commit a9f3a85
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 41 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Setup Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 12
- run: pip install mkdocs-material mdx_truly_sane_lists
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ jobs:
steps:
# Git Checkout
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
fetch-depth: 0

# Mega-Linter
- name: Mega-Linter
id: ml
uses: oxsecurity/megalinter/flavors/javascript@v6
uses: oxsecurity/megalinter/flavors/javascript@v7
env:
# All available variables are described in documentation
# https://oxsecurity.github.io/megalinter/#configuration
Expand All @@ -56,7 +56,7 @@ jobs:
# Upload Mega-Linter artifacts
- name: Archive production artifacts
if: ${{ success() }} || ${{ failure() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: Mega-Linter reports
path: |
Expand Down Expand Up @@ -85,6 +85,6 @@ jobs:
run: sudo chown -Rc $UID .git/
- name: Commit and push applied linter fixes
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'commit' && github.ref != 'refs/heads/master' && github.repository == github.event.pull_request.head.repo.full_name
uses: stefanzweifel/git-auto-commit-action@v4
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "[Mega-Linter] Apply linters fixes"
2 changes: 1 addition & 1 deletion .github/workflows/publish-to_npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: "12.x"
registry-url: "https://registry.npmjs.org"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
issues: write
pull-requests: write
# only run on schedule
if: "github.event_name == 'schedule'"
if: github.event_name == 'schedule'
steps:
- name: Mark issue stale
uses: actions/stale@v4
uses: actions/stale@v8
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: "This issue has been automatically marked as stale because it has not had recent activity.\nIt will be closed in 14 days if no further activity occurs.\nThank you for your contributions.\n\nIf you think this issue should stay open, please remove the `O: stale 🤖` label or comment on the issue."
Expand Down
77 changes: 47 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/lint-api.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const {
describe("Lint with API", () => {
beforeEach(beforeEachTestCase);

it("(API:file) should generate text console output ans stats", async () => {
it("(API:file) should generate text console output and stats", async () => {
const linter = await new NpmGroovyLint([process.execPath, "", "--path", '"lib/example"', "--files", "**/" + SAMPLE_FILE_SMALL, "--verbose"], {
verbose: true
}).run();
Expand Down
2 changes: 1 addition & 1 deletion test/miscellaneous.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ describe("Miscellaneous", function() {
`at least one response code is 9`
); */
await Promise.all(linterProms);
});
}).timeout(120000);

it("(API:help) should show npm-groovy-lint help", async () => {
const linter = await new NpmGroovyLint([process.execPath, "", "-h"], {}).run();
Expand Down

0 comments on commit a9f3a85

Please sign in to comment.