Skip to content

Commit

Permalink
add cargo run to CI/CD for rust
Browse files Browse the repository at this point in the history
  • Loading branch information
KavikaPalletenne committed Nov 13, 2024
1 parent 4acb472 commit 64e6ddc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ jobs:
echo "GOOGLE_CLIENT_ID=test" >> backend/.env
echo "GOOGLE_CLIENT_SECRET=test" >> backend/.env
echo "GOOGLE_REDIRECT_URI=http://localhost:3000/auth/callback" >> backend/.env
echo "ROCKET_DATABASES='{}'" >> backend/.env
echo "S3_BUCKET_NAME=chaos-storage" >> backend/.env
echo "S3_ACCESS_KEY=test_access_key" >> backend/.env
echo "S3_SECRET_KEY=test_secret_key" >> backend/.env
echo "S3_ENDPOINT=https://chaos-storage.s3.ap-southeast-1.amazonaws.com" >> backend/.env
echo "S3_REGION_NAME=ap-southeast-1" >> backend/.env
# selecting a toolchain either by action or manual `rustup` calls should happen
# before the plugin, as it uses the current rustc version as its cache key
- uses: actions-rs/toolchain@v1
Expand All @@ -57,6 +61,9 @@ jobs:
- name: Build
working-directory: backend/server
run: cargo build
- name: Run
working-directory: backend/server
run: timeout 30 cargo run
- name: Cargo Clippy
working-directory: backend/server
run: cargo clippy
Expand Down

0 comments on commit 64e6ddc

Please sign in to comment.