-
Notifications
You must be signed in to change notification settings - Fork 14
39 lines (34 loc) · 934 Bytes
/
rust.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Rust
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
DATABASE_URL: "http://localhost:8080"
SMTP_USERNAME: "[email protected]"
SMTP_PASSWORD: "example"
SMTP_HOST: "smtp.example.com"
OTP_SECRET: "lorememsum"
JWT_SECRET: "yoursecret"
PASS_RESET_LINK: "http://localhost:5173/reset-password"
ALLOWED_ORIGINS: "http://localhost:3000,http://yourdomain.com"
jobs:
# test:
# name: Test
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: dtolnay/rust-toolchain@stable
# - run: cargo test --all-features
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo fmt --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo clippy