-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade docker action, yew and actix sqlx (#26)
* save * sqlx * fix all async functions * direct thread * save * base image * add checker and tester * save images * remove env * comment makefile * gitignore * clippy * fmt * bump yew * save images removed
- Loading branch information
1 parent
747e4eb
commit 3057f41
Showing
14 changed files
with
1,589 additions
and
392 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,31 +5,38 @@ on: | |
paths: | ||
- 'actix-api/**' | ||
- 'types/**' | ||
- Dockerfile.actix | ||
- 'yew-ui/**' | ||
- 'docker/**' | ||
|
||
name: check backend | ||
|
||
env: | ||
ACTIX_PORT: 8080 | ||
TRUNK_SERVE_PORT: 80 | ||
TRUNK_SERVE_HOST: localhost | ||
OAUTH_CLIENT_ID: OAUTH_CLIENT_ID | ||
OAUTH_AUTH_URL: OAUTH_AUTH_URL | ||
OAUTH_TOKEN_URL: OAUTH_TOKEN_URL | ||
OAUTH_CLIENT_SECRET: OAUTH_CLIENT_SECRET | ||
OAUTH_REDIRECT_URL: http://localhost:${ACTIX_PORT:-8080}/login/callback | ||
RUST_LOG: info | ||
PG_URL: postgres://postgres:docker@postgres:5432/actix-api-db?sslmode=disable | ||
|
||
jobs: | ||
test: | ||
name: cargo test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/[email protected] | ||
|
||
# Cache Docker layers | ||
- name: Cache Docker layers | ||
uses: actions/cache@v2 | ||
with: | ||
components: clippy, rustfmt | ||
- run: cd actix-api && cargo clippy -- --deny warnings | ||
- run: cd actix-api && cargo fmt --check | ||
- run: cd actix-api && cargo test | ||
path: /tmp/.docker | ||
key: ${{ runner.os }}-docker-${{ github.sha }} | ||
restore-keys: | | ||
${{ runner.os }}-docker- | ||
# Cache Rust build artifacts | ||
- name: Cache Cargo Registry | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cargo/registry | ||
~/.cargo/git | ||
target | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-cargo- | ||
- run: make check | ||
- run: make test |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
.mov | ||
.mp4 | ||
.env | ||
target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.