Skip to content

Commit a480c00

Browse files
committed
create .env in ci
1 parent e2b59b5 commit a480c00

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/rust.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,28 @@ jobs:
1717

1818
steps:
1919
- uses: actions/checkout@v4
20+
21+
- name: Prep .env
22+
run: |
23+
echo "LASTFM_KEY=${{secrets.LASTFM_KEY}}" >> .env
24+
2025
- name: Build Backend
2126
run: |
2227
cd backend
23-
touch .env
2428
cargo build --verbose
29+
2530
- name: Build Frontend
2631
run: |
2732
cd frontend
2833
cargo install trunk wasm-bindgen-cli
2934
rustup target add wasm32-unknown-unknown
3035
trunk build --release
36+
3137
- name: Run tests
3238
run: cargo test --verbose
39+
3340
- name: Run Clippy
3441
run: cargo clippy --all-targets --all-features -- -D warnings -W clippy::pedantic
42+
3543
- name: Check formatting
3644
run: cargo fmt -- --check

0 commit comments

Comments
 (0)