Skip to content

feat(lint): add actionlint for GitHub Actions workflow validation #451

feat(lint): add actionlint for GitHub Actions workflow validation

feat(lint): add actionlint for GitHub Actions workflow validation #451

Workflow file for this run

name: lint
on:
push:
branches:
- main
- release-*
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
submodules: true
- name: Install Rust toolchain
uses: ./.github/actions/install-rust
- name: Cache Rust
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: rust/target
key: rust-x86_64-unknown-linux-gnu
- name: Install cargo-deny
run: cargo install --locked cargo-deny
- name: Install dotnet
uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5.2.0
with:
dotnet-version: "8"
- name: Install actionlint
run: |
ACTIONLINT_URL=https://github.com/rhysd/actionlint/releases/download/v1.7.12/actionlint_1.7.12_linux_amd64.tar.gz
curl -fsSL "$ACTIONLINT_URL" | tar xz -C /usr/local/bin actionlint
- name: Install Task
run: sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin
- name: Lint
run: task lint