Skip to content

Merge pull request #12 from TakuyaYagam1/update-omnirouter #57

Merge pull request #12 from TakuyaYagam1/update-omnirouter

Merge pull request #12 from TakuyaYagam1/update-omnirouter #57

Workflow file for this run

name: Linting
on:
pull_request:
paths:
- "Linux/**"
- ".github/dependabot.yml"
- ".github/workflows/**"
push:
branches:
- main
paths:
- "Linux/**"
- ".github/dependabot.yml"
- ".github/workflows/**"
jobs:
linting:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: Linux/installer/go.mod
cache-dependency-path: Linux/installer/go.sum
- name: Install Nix
uses: cachix/install-nix-action@v31
with:
extra_nix_config: |
experimental-features = nix-command flakes
- name: Install shell-check toolchain (fish, shellcheck, jq)
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends fish shellcheck jq
- name: Lint GitHub Actions workflows
run: nix run nixpkgs#actionlint -- .github/workflows/*.yml
- name: Run linting + tests
run: make -C Linux all