This commit is contained in:
@@ -7,7 +7,7 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: rust:latest
|
image: gitea.tobiasmaier.me/tobimai/devcontainer-rust:1.91
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: postgres:latest
|
image: postgres:latest
|
||||||
@@ -24,14 +24,12 @@ jobs:
|
|||||||
- 5432:5432
|
- 5432:5432
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install necessary dependencies
|
|
||||||
run: apt update && apt install nodejs pkg-config -y
|
|
||||||
- name: Install docker
|
- name: Install docker
|
||||||
run: curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh
|
run: curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Run migrations
|
- name: Run migrations
|
||||||
run: cargo install sqlx-cli && sqlx migrate run
|
run: sqlx migrate run
|
||||||
- name: Build server binary
|
- name: Build server binary
|
||||||
run: cargo build --release
|
run: cargo build --release
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: rust:latest
|
image: gitea.tobiasmaier.me/tobimai/devcontainer-rust:1.91
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: postgres:latest
|
image: postgres:latest
|
||||||
@@ -23,12 +23,10 @@ jobs:
|
|||||||
- 5432:5432
|
- 5432:5432
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install necessary dependencies
|
|
||||||
run: apt update && apt install nodejs pkg-config -y
|
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Run migrations
|
- name: Run migrations
|
||||||
run: cargo install sqlx-cli && sqlx migrate run
|
run: sqlx migrate run
|
||||||
- name: Running cargo build
|
- name: Running cargo build
|
||||||
run: cargo build --release
|
run: cargo build --release
|
||||||
- name: Running cargo build
|
- name: Running cargo build
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
use std::{fs, path::PathBuf};
|
use std::{fs, path::PathBuf};
|
||||||
|
|
||||||
use log::{error, info};
|
use log::{debug, error, info};
|
||||||
use semver::Version;
|
use semver::Version;
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
use thiserror::Error;
|
use thiserror::Error;
|
||||||
|
|||||||
Reference in New Issue
Block a user