@@ -2,42 +2,30 @@ name: Rust
22
33on :
44 push :
5- branches : [ "main" ]
5+ branches : ["main"]
66
77env :
88 CARGO_TERM_COLOR : always
99
1010jobs :
1111 build :
12-
1312 runs-on : ubuntu-latest
1413
1514 steps :
16- - uses : actions/checkout@v4
17- - uses : dtolnay/rust-toolchain@nightly
18-
19- - name : Version
20- run : cargo --version --verbose
21-
22- - name : Build
23- run : cargo build --verbose
24-
25- - name : Run tests
26- run : cargo test --verbose
27-
28- - name : Apply migrations
29- uses : Odonno/surrealdb-migrations-action@v0.2.0
30- with :
31- address : ${{ secrets.SURREAL_ADDRESS }}
32- ns : ${{ secrets.SURREAL_NS }}
33- db : ${{ secrets.SURREAL_DB }}
34- username : ${{ secrets.SURREAL_USERNAME }}
35- password : ${{ secrets.SURREAL_PASSWORD }}
36- version : v2.0.0-preview.1
37- skip-untracked-files : true
38-
39- - name : Deploy to DigitalOcean
40- uses : digitalocean/app_action@v1 # switch to v2 after https://github.com/digitalocean/app_action/issues/123
41- with :
42- app_name : blog
43- token : ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
15+ - uses : actions/checkout@v4
16+ - uses : dtolnay/rust-toolchain@nightly
17+
18+ - name : Version
19+ run : cargo --version --verbose
20+
21+ - name : Build
22+ run : cargo build --verbose
23+
24+ - name : Run tests
25+ run : cargo test --verbose
26+
27+ - name : Deploy to DigitalOcean
28+ uses : digitalocean/app_action@v1 # switch to v2 after https://github.com/digitalocean/app_action/issues/123
29+ with :
30+ app_name : blog
31+ token : ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
0 commit comments