Skip to content

Commit 26ea404

Browse files
authored
Fix up blockfrost logic in CI (#2211)
- Don't need to write blockfrost-project.txt for each package - Only run blockfrost nightly - No need to build just develop (it already builds).
2 parents 4dc0ede + 7745a83 commit 26ea404

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

.github/workflows/ci-nix.yaml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,8 @@ jobs:
4747
- name: ❓ Test
4848
if: ${{ matrix.package != 'hydra-tui' }}
4949
run: |
50-
if [[ "${{secrets.blockfrost_token}}" != '' ]]; then
51-
echo "${{secrets.blockfrost_token}}" > blockfrost-project.txt
52-
cd ${{ matrix.package }}
53-
nix build .#${{ matrix.package }}-tests
54-
nix develop .#${{ matrix.package }}-tests --command tests
55-
else
56-
echo "::warning file=blockfrost-project.txt,title=BLOCKFROST::Missing blockfrost project file."
57-
fi
50+
cd ${{ matrix.package }} # To ensure the `./golden` files are available.
51+
nix develop .#${{ matrix.package }}-tests --command tests
5852
5953
# This one is special, as it requires a tty.
6054
- name: ❓ Test (TUI)
@@ -67,7 +61,6 @@ jobs:
6761
TERM: "xterm"
6862
run: |
6963
cd ${{ matrix.package }}
70-
nix build .#${{ matrix.package }}-tests
7164
nix develop .#${{ matrix.package }}-tests --command tests
7265
7366
# NOTE: This depends on the path used in hydra-cluster e2e tests

.github/workflows/nightly-ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ jobs:
3737
- name: ❓ E2E Blockfrost Test
3838
run: |
3939
if [[ "${{secrets.blockfrost_token}}" != '' ]]; then
40-
echo "${{secrets.blockfrost_token}}" > blockfrost-project.txt
4140
cd ${{ matrix.package }}
41+
echo "${{secrets.blockfrost_token}}" > blockfrost-project.txt
4242
nix develop .#${{ matrix.package }}-tests --command tests -m "End-to-end on Cardano devnet"
4343
else
4444
echo "::warning file=blockfrost-project.txt,title=BLOCKFROST::Missing blockfrost project file."

0 commit comments

Comments
 (0)