build(deps): bump actions/cache from 2 to 4 #971
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: | |
pull_request: {} | |
workflow_dispatch: {} | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
jobs: | |
lua-check: | |
name: Lua Check | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
issues: read | |
checks: write | |
pull-requests: write | |
if: (github.actor != 'dependabot[bot]') | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
# Optional step to run on only changed files | |
- name: Get changed files | |
id: changed-files | |
uses: tj-actions/changed-files@48d8f15b2aaa3d255ca5af3eba4870f807ce6b3c # 45.0.2 | |
with: | |
files: | | |
**.lua | |
- name: Lua Check | |
if: steps.changed-files.outputs.any_changed == 'true' | |
uses: Kong/public-shared-actions/code-check-actions/lua-lint@v2 | |
with: | |
additional_args: '--no-default-config --config .luacheckrc' | |
files: ${{ steps.changed-files.outputs.all_changed_files }} | |
rust-fmt: | |
name: Rust Fmt | |
runs-on: ubuntu-latest | |
if: (github.actor != 'dependabot[bot]') | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
- name: Run Rust Fmt | |
run: cargo fmt --all -- --check # only check, don't format | |
rust-clippy: | |
name: Rust Clippy | |
runs-on: ubuntu-latest | |
permissions: | |
# required for all workflows | |
security-events: write | |
checks: write | |
pull-requests: write | |
# only required for workflows in private repositories | |
actions: read | |
contents: read | |
if: (github.actor != 'dependabot[bot]') | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
# Optional step to run on only changed files | |
- name: Get changed files | |
id: changed-files | |
uses: tj-actions/changed-files@48d8f15b2aaa3d255ca5af3eba4870f807ce6b3c # 45.0.2 | |
with: | |
files: | | |
**.rs | |
- name: Rust Clippy | |
if: steps.changed-files.outputs.any_changed == 'true' | |
uses: Kong/public-shared-actions/code-check-actions/rust-lint@v2 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |