Skip to content

Commit 65b9bd9

Browse files
committed
unit test update
joe
1 parent b82ef51 commit 65b9bd9

File tree

2 files changed

+4
-21
lines changed

2 files changed

+4
-21
lines changed

.github/workflows/qr-validation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
sleep 5
4141
4242
# Test URL
43-
TEST_URL="https://github.com"
43+
TEST_URL="https://ghurmy.xyz"
4444
4545
# Generate QR code and save as SVG
4646
curl -X GET "http://localhost:8080/generate?url=$TEST_URL" \

.github/workflows/rust.yml

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -23,28 +23,11 @@ jobs:
2323
profile: minimal
2424
toolchain: stable
2525
override: true
26-
components: rustfmt, clippy
2726

28-
- name: Cache dependencies
29-
uses: actions/cache@v3
30-
with:
31-
path: |
32-
~/.cargo/registry
33-
~/.cargo/git
34-
target
35-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
36-
37-
- name: Run tests
27+
- name: Setup environment
3828
run: |
3929
echo "API_KEY=test_key" > .env
4030
echo "PORT=8080" >> .env
41-
cargo test -- --nocapture
4231
43-
- name: Format code
44-
run: cargo fmt
45-
46-
- name: Verify formatting
47-
run: cargo fmt -- --check
48-
49-
- name: Run clippy
50-
run: cargo clippy -- -D warnings
32+
- name: Run tests
33+
run: cargo test -- --nocapture

0 commit comments

Comments
 (0)