Skip to content

Commit

Permalink
create .env in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
wyatt-avilla committed Jun 22, 2024
1 parent e2b59b5 commit a480c00
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,28 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Prep .env
run: |
echo "LASTFM_KEY=${{secrets.LASTFM_KEY}}" >> .env
- name: Build Backend
run: |
cd backend
touch .env
cargo build --verbose
- name: Build Frontend
run: |
cd frontend
cargo install trunk wasm-bindgen-cli
rustup target add wasm32-unknown-unknown
trunk build --release
- name: Run tests
run: cargo test --verbose

- name: Run Clippy
run: cargo clippy --all-targets --all-features -- -D warnings -W clippy::pedantic

- name: Check formatting
run: cargo fmt -- --check

0 comments on commit a480c00

Please sign in to comment.