ci: Add actionlint workflow for actions code quality checks #35
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: Code-quality | |
on: | |
pull_request: | |
branches: | |
- "main" | |
concurrency: | |
group: ${{ github.ref }}-${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
skip-duplicate-actions: | |
name: Skip Duplicate Actions | |
runs-on: ubuntu-latest | |
steps: | |
- uses: fkirc/skip-duplicate-actions@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
cancel_others: true | |
concurrent_skipping: never | |
code_quality: | |
name: Code quality | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Go latest | |
uses: actions/setup-go@v5 | |
with: | |
go-version: stable | |
- name: Download dependencies | |
run: | | |
go mod download | |
working-directory: cc | |
- name: Run Dagger | |
uses: dagger/dagger-for-github@v5 | |
with: | |
args: go run -v . | |
dagger-flags: --debug | |
verb: run | |
version: latest | |
workdir: cc |