Skip to content

Commit

Permalink
feat: migrate to gabble (#50)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Liendo <[email protected]>
  • Loading branch information
LeoBorai and Michael-Liendo authored Jun 26, 2023
1 parent e9fb755 commit e7b5a2f
Show file tree
Hide file tree
Showing 52 changed files with 1,720 additions and 57 deletions.
9 changes: 4 additions & 5 deletions .env.example
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'
9 changes: 9 additions & 0 deletions .github/dependabot.yml
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'
53 changes: 53 additions & 0 deletions .github/workflows/test-e2e.yml
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
Loading

0 comments on commit e7b5a2f

Please sign in to comment.