Split services into option parts so we can have runners #401
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
# SPDX-FileCopyrightText: Andrew Hayzen <[email protected]> | |
# | |
# SPDX-License-Identifier: MPL-2.0 | |
name: check | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
license-check: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/[email protected] | |
- name: REUSE Compliance Check | |
uses: fsfe/reuse-action@v3 | |
flake-checker: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/[email protected] | |
- uses: DeterminateSystems/flake-checker-action@v8 | |
nix-fmt: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/[email protected] | |
- uses: DeterminateSystems/nix-installer-action@v12 | |
- uses: DeterminateSystems/magic-nix-cache-action@v7 | |
- name: nix fmt | |
run: nix fmt | |
- name: git diff | |
run: git diff --exit-code | |
shellcheck: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/[email protected] | |
# Shellcheck should already be installed on github runners | |
- name: install shellcheck | |
run: sudo apt install --yes shellcheck | |
- name: shellcheck | |
run: shellcheck scripts/*.sh | |
nix-flake-check: | |
# Run after pre checks | |
needs: [license-check, flake-checker, nix-fmt, shellcheck] | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/[email protected] | |
- uses: DeterminateSystems/nix-installer-action@v12 | |
- uses: DeterminateSystems/magic-nix-cache-action@v7 | |
- name: nix flake check | |
run: nix flake --option sandbox false check -L |