-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
86a95a3
commit ee2098a
Showing
2 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
on: | ||
pull_request: | ||
push: | ||
|
||
jobs: | ||
nix-jobs-test: | ||
name: "Test nix jobs" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: "${{github.head_ref || github.ref_name}}" | ||
- name: Install Nix | ||
uses: cachix/install-nix-action@v27 | ||
with: | ||
extra_nix_config: | | ||
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= | ||
substituters = https://cache.iog.io https://cache.nixos.org/ | ||
experimental-features = fetch-closure flakes nix-command | ||
- name: Test | ||
run: | | ||
nix --version | ||
export DEBUG="true" | ||
export ERA_CMD="alonzo" | ||
export SUBMIT_TX="false" | ||
export UNSTABLE="false" | ||
export UNSTABLE_LIB="false" | ||
export USE_ENCRYPTION=true | ||
export USE_DECRYPTION=true | ||
export USE_NODE_CONFIG_BP=false | ||
TESTS() { | ||
echo "Running legacy create-cardano config job" | ||
nix run .#job-gen-custom-node-config | ||
echo | ||
echo "Running create-testnet-data config job" | ||
nix run .#job-gen-custom-node-config-data | ||
echo | ||
echo "Running create stake pool keys job" | ||
nix run .#job-create-stake-pool-keys | ||
echo | ||
echo "Running move genesis utxo job" | ||
nix run .#job-move-genesis-utxo | ||
echo | ||
echo "Running register stake pools job" | ||
POOL_NAMES="sp-1 sp-2 sp-3" nix run .#job-register-stake-pools | ||
echo | ||
echo "Running delegate rewards stake key job" | ||
nix run .#job-delegate-rewards-stake-key | ||
echo | ||
echo "Running update proposal hard fork job" | ||
MAJOR_VERSION="7" nix run .#job-update-proposal-hard-fork | ||
echo | ||
} | ||
echo | ||
echo "Run nix job tests with release versioning..." | ||
TESTS() | ||
echo | ||
echo "Now run nix job tests again with pre-release versioning..." | ||
export UNSTABLE="true" | ||
export UNSTABLE_LIB="true" | ||
TESTS() |
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