Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/hydra
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ce7b23ae0916
Choose a base ref
...
head repository: NixOS/hydra
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 525a229dac02
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Jan 3, 2021

  1. Copy the full SHA
    525a229 View commit details
Showing with 9 additions and 9 deletions.
  1. +1 −9 .github/workflows/test.yml
  2. +8 −0 flake.nix
10 changes: 1 addition & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -11,12 +11,4 @@ jobs:
fetch-depth: 0
- uses: cachix/install-nix-action@v12
#- run: nix flake check
- run: nix-build -A checks.x86_64-linux.build
#validate-openapi:
# runs-on: ubuntu-18.04
# steps:
# - uses: actions/checkout@v2
# with:
# fetch-depth: 0
# - uses: cachix/install-nix-action@v12
# - run: nix-shell -p openapi-generator-cli --run "openapi-generator-cli validate -i ./hydra-api.yaml"
- run: nix-build -A checks.x86_64-linux.build -A checks.x86_64-linux.validate-openapi
8 changes: 8 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -482,11 +482,19 @@
'';
};

tests.validate-openapi = pkgs.runCommand "validate-openapi"
{ buildInputs = [ pkgs.openapi-generator-cli ]; }
''
openapi-generator-cli validate -i ${./hydra-api.yaml}
touch $out
'';

container = nixosConfigurations.container.config.system.build.toplevel;
};

checks.x86_64-linux.build = hydraJobs.build.x86_64-linux;
checks.x86_64-linux.install = hydraJobs.tests.install.x86_64-linux;
checks.x86_64-linux.validate-openapi = hydraJobs.tests.validate-openapi;

packages.x86_64-linux.hydra = pkgs.hydra;
defaultPackage.x86_64-linux = pkgs.hydra;