Skip to content

Commit a94de76

Browse files
committed
Fix up blockfrost logic in CI
- Don't need to write blockfrost-project.txt for each package - Only run blockfrost nightly - No need to build just develop (it already builds).
1 parent 4dc0ede commit a94de76

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

.github/workflows/ci-nix.yaml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,7 @@ 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+
nix develop .#${{ matrix.package }}-tests --command tests
5851
5952
# This one is special, as it requires a tty.
6053
- name: ❓ Test (TUI)
@@ -67,7 +60,6 @@ jobs:
6760
TERM: "xterm"
6861
run: |
6962
cd ${{ matrix.package }}
70-
nix build .#${{ matrix.package }}-tests
7163
nix develop .#${{ matrix.package }}-tests --command tests
7264
7365
# 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)