Skip to content

Commit a93a04f

Browse files
authored
Add new nightly CI workflow (#2103)
1 parent e4d4e89 commit a93a04f

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/nightly-ci.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: "Nightly CI"
2+
3+
# Limit concurrent runs of this workflow within a single PR
4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
6+
cancel-in-progress: true
7+
on:
8+
schedule:
9+
# Everyday at 4:00 AM
10+
- cron: "0 4 * * *"
11+
# Allows to trigger runs on any branch
12+
workflow_dispatch:
13+
14+
permissions:
15+
checks: write
16+
pull-requests: write
17+
18+
jobs:
19+
build-test:
20+
name: "Nightly Blockfrost e2d tests"
21+
runs-on: ubuntu-latest
22+
strategy:
23+
matrix:
24+
include:
25+
- package: hydra-cluster
26+
steps:
27+
- name: 📥 Checkout repository
28+
uses: actions/checkout@v4
29+
30+
- name: ❄ Setup Nix/Cachix
31+
uses: ./.github/actions/nix-cachix-setup
32+
with:
33+
authToken: '${{ secrets.CACHIX_CARDANO_SCALING_AUTH_TOKEN }}'
34+
35+
- name: ❓ E2E Blockfrost Test
36+
run: |
37+
if [[ "${{secrets.blockfrost_token}}" != '' ]]; then
38+
echo "${{secrets.blockfrost_token}}" > blockfrost-project.txt
39+
cd ${{ matrix.package }}
40+
export HYDRA_BACKEND="blockfrost"
41+
nix build .#${{ matrix.package }}-tests
42+
nix develop
43+
cabal test hydra-cluster --test-options '-m "End-to-end on Cardano devnet"'
44+
else
45+
echo "::warning file=blockfrost-project.txt,title=BLOCKFROST::Missing blockfrost project file."
46+
fi

0 commit comments

Comments
 (0)