diff --git a/.github/workflows/switches.yml b/.github/workflows/switches.yml deleted file mode 100644 index beba395a..00000000 --- a/.github/workflows/switches.yml +++ /dev/null @@ -1,41 +0,0 @@ ---- -name: switches - -on: - pull_request: - paths: - - '.github/**' - - 'switch-configuration/**' - push: # This is only run when PRs are merged into master - branches: - - master - workflow_dispatch: - - -jobs: - linter: - name: perl_lint - runs-on: ubuntu-latest - container: - # Perl 5 latest: 12-30-21 - image: perl@sha256:1ec7df9b6c70e31b05d937f929ddfe06a6a1966d98c09ae78ecfbb391a364739 - steps: - - name: checkout - id: checkout - uses: actions/checkout@v2 - - name: lint - working-directory: switch-configuration - run: make .lint - build: - name: switch_build - runs-on: ubuntu-latest - container: - # Perl 5 latest: 12-30-21 - image: perl@sha256:1ec7df9b6c70e31b05d937f929ddfe06a6a1966d98c09ae78ecfbb391a364739 - steps: - - name: checkout - id: checkout - uses: actions/checkout@v2 - - name: build_switch_configs - working-directory: switch-configuration - run: make .build-switch-configs diff --git a/.github/workflows/validate-datafiles.yml b/.github/workflows/validate-datafiles.yml index ff0f5dd7..d8fb6925 100644 --- a/.github/workflows/validate-datafiles.yml +++ b/.github/workflows/validate-datafiles.yml @@ -17,3 +17,4 @@ jobs: - uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/magic-nix-cache-action@main - run: nix build -L .#checks.pytest-facts + - run: nix build -L .#checks.perl-switches diff --git a/flake.nix b/flake.nix index 10a3c7ce..c9c56d07 100644 --- a/flake.nix +++ b/flake.nix @@ -113,7 +113,7 @@ buildInputs = [ pkgs.gnumake pkgs.perl ]; } '' cp -r ${pkgs.lib.cleanSource self}/* . - cd switch-configurations + cd switch-configuration make .lint make .build-switch-configs touch $out