Skip to content

Commit 2d13db7

Browse files
committed
ci: run preprod tests
1 parent ac4ba85 commit 2d13db7

File tree

1 file changed

+167
-167
lines changed

1 file changed

+167
-167
lines changed

.github/workflows/ci.yaml

Lines changed: 167 additions & 167 deletions
Original file line numberDiff line numberDiff line change
@@ -14,110 +14,110 @@ env:
1414
CARGO_TERM_COLOR: always
1515

1616
jobs:
17-
lint_docker:
18-
name: Lint Dockerfile
19-
runs-on: ubuntu-latest
20-
steps:
21-
- name: Checkout repository
22-
uses: actions/checkout@v4
23-
24-
- name: Install Hadolint
25-
run: |
26-
curl -sSL https://github.com/hadolint/hadolint/releases/latest/download/hadolint-Linux-x86_64 -o hadolint
27-
chmod +x hadolint
28-
sudo mv hadolint /usr/local/bin/hadolint
29-
30-
- name: Lint Dockerfile
31-
run: hadolint Dockerfile
32-
33-
build_and_test:
34-
name: Build and Test
35-
runs-on: ${{ matrix.os }}
36-
strategy:
37-
matrix:
38-
os: [ubuntu-latest, windows-latest, macos-latest]
39-
rust: [stable]
40-
fail-fast: true
41-
42-
steps:
43-
- name: Checkout repository
44-
uses: actions/checkout@v4
45-
- name: Cache Cargo registry
46-
uses: actions/cache@v3
47-
with:
48-
path: |
49-
~/.cargo/registry
50-
~/.cargo/git
51-
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
52-
- name: Install Rust toolchain
53-
uses: actions-rust-lang/setup-rust-toolchain@v1
54-
with:
55-
toolchain: ${{ matrix.rust }}
56-
components: rustfmt, rust-src, clippy
57-
58-
- name: Fast check
59-
run: cargo check --workspace --all-targets --verbose
60-
61-
- name: Build
62-
run: cargo build --workspace --release --verbose
63-
64-
- name: Test
65-
run: cargo test --workspace --lib --verbose
66-
timeout-minutes: 10
67-
68-
- name: Check formatting
69-
run: cargo fmt --all -- --check
70-
71-
- name: Lint with Clippy
72-
run: cargo clippy --workspace --all-targets -- -D warnings
73-
74-
- name: Package binaries
75-
if: github.event_name == 'workflow_dispatch' && github.event.inputs.upload_artifacts == 'true'
76-
run: |
77-
mkdir -p artifacts
78-
cp target/release/blockfrost-platform* artifacts/
79-
80-
- name: Upload artifacts
81-
if: github.event_name == 'workflow_dispatch' && github.event.inputs.upload_artifacts == 'true'
82-
uses: actions/upload-artifact@v4
83-
with:
84-
name: ${{ runner.os }}-binary
85-
path: artifacts/
86-
87-
platform_integration_tests:
88-
name: Platform Integration Tests
89-
runs-on: [self-hosted, Linux, X64, nixos]
90-
needs: build_and_test
91-
steps:
92-
- name: Checkout repository
93-
uses: actions/checkout@v4
94-
95-
- name: Run Integration Tests
96-
run: nix develop .# --command cargo test --verbose --test endpoints_test
17+
# lint_docker:
18+
# name: Lint Dockerfile
19+
# runs-on: ubuntu-latest
20+
# steps:
21+
# - name: Checkout repository
22+
# uses: actions/checkout@v4
23+
24+
# - name: Install Hadolint
25+
# run: |
26+
# curl -sSL https://github.com/hadolint/hadolint/releases/latest/download/hadolint-Linux-x86_64 -o hadolint
27+
# chmod +x hadolint
28+
# sudo mv hadolint /usr/local/bin/hadolint
29+
30+
# - name: Lint Dockerfile
31+
# run: hadolint Dockerfile
32+
33+
# build_and_test:
34+
# name: Build and Test
35+
# runs-on: ${{ matrix.os }}
36+
# strategy:
37+
# matrix:
38+
# os: [ubuntu-latest, windows-latest, macos-latest]
39+
# rust: [stable]
40+
# fail-fast: true
41+
42+
# steps:
43+
# - name: Checkout repository
44+
# uses: actions/checkout@v4
45+
# - name: Cache Cargo registry
46+
# uses: actions/cache@v3
47+
# with:
48+
# path: |
49+
# ~/.cargo/registry
50+
# ~/.cargo/git
51+
# key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
52+
# - name: Install Rust toolchain
53+
# uses: actions-rust-lang/setup-rust-toolchain@v1
54+
# with:
55+
# toolchain: ${{ matrix.rust }}
56+
# components: rustfmt, rust-src, clippy
57+
58+
# - name: Fast check
59+
# run: cargo check --workspace --all-targets --verbose
60+
61+
# - name: Build
62+
# run: cargo build --workspace --release --verbose
63+
64+
# - name: Test
65+
# run: cargo test --workspace --lib --verbose
66+
# timeout-minutes: 10
67+
68+
# - name: Check formatting
69+
# run: cargo fmt --all -- --check
70+
71+
# - name: Lint with Clippy
72+
# run: cargo clippy --workspace --all-targets -- -D warnings
73+
74+
# - name: Package binaries
75+
# if: github.event_name == 'workflow_dispatch' && github.event.inputs.upload_artifacts == 'true'
76+
# run: |
77+
# mkdir -p artifacts
78+
# cp target/release/blockfrost-platform* artifacts/
79+
80+
# - name: Upload artifacts
81+
# if: github.event_name == 'workflow_dispatch' && github.event.inputs.upload_artifacts == 'true'
82+
# uses: actions/upload-artifact@v4
83+
# with:
84+
# name: ${{ runner.os }}-binary
85+
# path: artifacts/
86+
87+
# platform_integration_tests:
88+
# name: Platform Integration Tests
89+
# runs-on: [self-hosted, Linux, X64, nixos]
90+
# needs: build_and_test
91+
# steps:
92+
# - name: Checkout repository
93+
# uses: actions/checkout@v4
94+
95+
# - name: Run Integration Tests
96+
# run: nix develop .# --command cargo test --verbose --test endpoints_test
9797

9898
blockfrost_integration_tests:
9999
name: Blockfrost Integration Tests (${{ matrix.network }})
100100
runs-on: [self-hosted, Linux, X64, nixos]
101-
needs: build_and_test
101+
# needs: build_and_test
102102
strategy:
103103
fail-fast: false
104104
matrix:
105105
include:
106-
- network: preview
107-
dolos_endpoint: http://127.0.0.1:3010
108-
cardano_node_socket_path: /run/cardano-node/node.socket
109-
project_id_secret: BLOCKFROST_PREVIEW_PROJECT_ID
110-
submit_mnemonic_secret: BLOCKFROST_PREVIEW_SUBMIT_MNEMONIC
106+
# - network: preview
107+
# dolos_endpoint: http://127.0.0.1:3010
108+
# cardano_node_socket_path: /run/cardano-node/node.socket
109+
# project_id_secret: BLOCKFROST_PREVIEW_PROJECT_ID
110+
# submit_mnemonic_secret: BLOCKFROST_PREVIEW_SUBMIT_MNEMONIC
111111
- network: preprod
112112
dolos_endpoint: http://127.0.0.1:3009
113-
cardano_node_socket_path: /run/cardano-node/i-dont-exist-yet.socket
113+
cardano_node_socket_path: /run/cardano-node/node_preprod.socket
114114
project_id_secret: BLOCKFROST_PREPROD_PROJECT_ID
115115
submit_mnemonic_secret: BLOCKFROST_PREPROD_SUBMIT_MNEMONIC
116-
- network: mainnet
117-
dolos_endpoint: http://127.0.0.1:3008
118-
cardano_node_socket_path: /run/cardano-node/i-dont-exist-yet.socket
119-
project_id_secret: BLOCKFROST_MAINNET_PROJECT_ID
120-
submit_mnemonic_secret: BLOCKFROST_MAINNET_SUBMIT_MNEMONIC
116+
# - network: mainnet
117+
# dolos_endpoint: http://127.0.0.1:3008
118+
# cardano_node_socket_path: /run/cardano-node/i-dont-exist-yet.socket
119+
# project_id_secret: BLOCKFROST_MAINNET_PROJECT_ID
120+
# submit_mnemonic_secret: BLOCKFROST_MAINNET_SUBMIT_MNEMONIC
121121
steps:
122122
- name: Checkout repository
123123
uses: actions/checkout@v4
@@ -132,78 +132,78 @@ jobs:
132132
run: |
133133
nix run -L .#internal.x86_64-linux.blockfrost-tests-"${{ matrix.network }}"
134134
135-
hydra_against_blockfrost_tests:
136-
name: Hydra tests of their `--blockfrost` option
137-
runs-on: [self-hosted, Linux, X64, nixos]
138-
steps:
139-
- name: Checkout repository
140-
uses: actions/checkout@v4
141-
142-
- name: Run Hydra Tests
143-
env:
144-
CARDANO_NODE_SOCKET_PATH: /run/cardano-node/node.socket
145-
BLOCKFROST_PROJECT_ID: ${{ secrets.BLOCKFROST_TESTS_PROJECT_ID }}
146-
SUBMIT_MNEMONIC: ${{ secrets.BLOCKFROST_TESTS_SUBMIT_MNEMONIC }}
147-
run: |
148-
nix run -L .#internal.x86_64-linux.hydra-test
149-
150-
coverage:
151-
name: Coverage
152-
runs-on: ubuntu-latest
153-
needs: build_and_test
154-
steps:
155-
- name: Checkout repository
156-
uses: actions/checkout@v3
157-
158-
- name: Install Rust toolchain
159-
uses: actions-rust-lang/setup-rust-toolchain@v1
160-
161-
- name: Install cargo-tarpaulin
162-
run: cargo install cargo-tarpaulin
163-
164-
- name: Generate coverage report
165-
run: cargo tarpaulin --workspace --all --lib --features tarpaulin --out html --output-dir coverage --fail-under 11
166-
167-
- name: Upload coverage report for GitHub Pages
168-
uses: actions/upload-artifact@v4
169-
with:
170-
name: coverage-html
171-
path: coverage/
172-
173-
pages:
174-
name: Prepare coverage for GitHub Pages
175-
if: ${{ github.ref == 'refs/heads/main' }}
176-
needs: coverage
177-
runs-on: ubuntu-latest
178-
steps:
179-
- name: Checkout repository
180-
uses: actions/checkout@v4
181-
182-
- name: Configure Pages
183-
uses: actions/configure-pages@v3
184-
185-
- name: Download coverage artifact
186-
uses: actions/download-artifact@v4
187-
with:
188-
name: coverage-html
189-
path: coverage
190-
191-
- name: Copy to index.html
192-
run: cp coverage/tarpaulin-report.html coverage/index.html
193-
194-
- name: Upload coverage folder
195-
uses: actions/upload-pages-artifact@v3
196-
with:
197-
path: coverage/
198-
199-
deploy:
200-
name: Deploy to GitHub Pages
201-
if: ${{ github.ref == 'refs/heads/main' }}
202-
needs: pages
203-
runs-on: ubuntu-latest
204-
permissions:
205-
pages: write
206-
id-token: write
207-
steps:
208-
- name: Deploy
209-
uses: actions/deploy-pages@v4
135+
# hydra_against_blockfrost_tests:
136+
# name: Hydra tests of their `--blockfrost` option
137+
# runs-on: [self-hosted, Linux, X64, nixos]
138+
# steps:
139+
# - name: Checkout repository
140+
# uses: actions/checkout@v4
141+
142+
# - name: Run Hydra Tests
143+
# env:
144+
# CARDANO_NODE_SOCKET_PATH: /run/cardano-node/node.socket
145+
# BLOCKFROST_PROJECT_ID: ${{ secrets.BLOCKFROST_TESTS_PROJECT_ID }}
146+
# SUBMIT_MNEMONIC: ${{ secrets.BLOCKFROST_TESTS_SUBMIT_MNEMONIC }}
147+
# run: |
148+
# nix run -L .#internal.x86_64-linux.hydra-test
149+
150+
# coverage:
151+
# name: Coverage
152+
# runs-on: ubuntu-latest
153+
# needs: build_and_test
154+
# steps:
155+
# - name: Checkout repository
156+
# uses: actions/checkout@v3
157+
158+
# - name: Install Rust toolchain
159+
# uses: actions-rust-lang/setup-rust-toolchain@v1
160+
161+
# - name: Install cargo-tarpaulin
162+
# run: cargo install cargo-tarpaulin
163+
164+
# - name: Generate coverage report
165+
# run: cargo tarpaulin --workspace --all --lib --features tarpaulin --out html --output-dir coverage --fail-under 11
166+
167+
# - name: Upload coverage report for GitHub Pages
168+
# uses: actions/upload-artifact@v4
169+
# with:
170+
# name: coverage-html
171+
# path: coverage/
172+
173+
# pages:
174+
# name: Prepare coverage for GitHub Pages
175+
# if: ${{ github.ref == 'refs/heads/main' }}
176+
# needs: coverage
177+
# runs-on: ubuntu-latest
178+
# steps:
179+
# - name: Checkout repository
180+
# uses: actions/checkout@v4
181+
182+
# - name: Configure Pages
183+
# uses: actions/configure-pages@v3
184+
185+
# - name: Download coverage artifact
186+
# uses: actions/download-artifact@v4
187+
# with:
188+
# name: coverage-html
189+
# path: coverage
190+
191+
# - name: Copy to index.html
192+
# run: cp coverage/tarpaulin-report.html coverage/index.html
193+
194+
# - name: Upload coverage folder
195+
# uses: actions/upload-pages-artifact@v3
196+
# with:
197+
# path: coverage/
198+
199+
# deploy:
200+
# name: Deploy to GitHub Pages
201+
# if: ${{ github.ref == 'refs/heads/main' }}
202+
# needs: pages
203+
# runs-on: ubuntu-latest
204+
# permissions:
205+
# pages: write
206+
# id-token: write
207+
# steps:
208+
# - name: Deploy
209+
# uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)