-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Michael Liendo <[email protected]>
- Loading branch information
1 parent
e9fb755
commit e7b5a2f
Showing
52 changed files
with
1,720 additions
and
57 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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
CORS_ALLOW_ORIGIN='*' | ||
DATABASE_URL='postgresql://gabble:gabble@localhost:5432/gabble' | ||
FLUVIO_ADDR='127.0.0.1:9003' | ||
JWT_SECRET='gabble' | ||
PORT=7878 | ||
RUST_LOG=info | ||
POSTGRES_USER=gabble | ||
POSTGRES_PASSWORD=gabble | ||
POSTGRES_DB=gabble | ||
RUST_LOG='info' | ||
POSTGRES_USER='gabble' | ||
POSTGRES_PASSWORD='gabble' | ||
POSTGRES_DB='gabble' |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Please see the documentation for all configuration options: | ||
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: 'cargo' | ||
directory: '/' | ||
schedule: | ||
interval: 'weekly' |
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: E2E Tests | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
paths: | ||
- "**" | ||
- "!/*.md" | ||
- "!/**.md" | ||
|
||
concurrency: | ||
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}" | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
e2e_tests: | ||
name: Run E2E Tests | ||
runs-on: ubuntu-latest | ||
env: | ||
RUST_LOG: "info" | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Rust Toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
|
||
- name: Setup Rust Cache | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Install Just | ||
uses: extractions/setup-just@v1 | ||
with: | ||
just-version: '1.13.0' | ||
|
||
- name: Creates a Dotenv file | ||
run: just dotenv | ||
|
||
- name: Start Containers | ||
run: docker compose up -d --build | ||
|
||
- name: Run Migrations | ||
run: cargo run database migrate | ||
|
||
- name: Runs E2E tests | ||
run: just e2e_test | ||
|
||
- name: Stop containers | ||
if: always() | ||
run: docker compose down |
Oops, something went wrong.