Skip to content

Commit

Permalink
Merge pull request #11 from WartaPoirier-corp/rocket-0.5
Browse files Browse the repository at this point in the history
Update Rocket 0.5 r.c. 3
  • Loading branch information
edgarogh authored Sep 9, 2023
2 parents 5bd5d50 + ec1fc54 commit 7dc6fb9
Show file tree
Hide file tree
Showing 35 changed files with 2,337 additions and 2,276 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ env:
jobs:
build-server:
runs-on: ubuntu-latest
container: willsquire/diesel-cli

services:
postgres:
Expand All @@ -29,26 +30,27 @@ jobs:
- 5432:5432

steps:
- name: Install psql
run: apt update && apt install -y postgresql-client
- name: Test DB, install uuid-ossp, and interrupt action if it doesn't work
run: psql postgres://wartid:wartid@localhost/wartid --command='create extension "uuid-ossp";'
run: psql postgres://wartid:wartid@postgres/wartid --command='create extension "uuid-ossp";'
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2021-01-15
- uses: Swatinem/rust-cache@v1
- name: Install diesel
run: cargo install diesel_cli --no-default-features --features postgres
- name: Apply migrations
working-directory: ./wartid-server/
run: diesel migration run
env:
DATABASE_URL: postgres://wartid:wartid@localhost/wartid
DATABASE_URL: postgres://wartid:wartid@postgres/wartid
- name: Build --all-features
working-directory: ./wartid-server/
run: cargo build --all-features --verbose
run: cargo build --release --all-features --verbose
- name: Build --no-default-features
working-directory: ./wartid-server/
run: cargo build --no-default-features --verbose
run: cargo build --release --no-default-features --verbose
- name: Run tests
working-directory: ./wartid-server/
run: cargo test --verbose
- uses: actions/upload-artifact@v3
with:
name: wartid-server
path: ./target/release/wartid-server
Loading

0 comments on commit 7dc6fb9

Please sign in to comment.