Skip to content

Merge pull request #34 from he1senbrg/home_fn #29

Merge pull request #34 from he1senbrg/home_fn

Merge pull request #34 from he1senbrg/home_fn #29

Workflow file for this run

name: Shuttle Deploy
on:
push:
branches:
- master
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Start PostgreSQL
run: |
docker run --name postgres-test -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=test_db -p 5432:5432 -d postgres:15
- name: Set TEST_DATABASE_URL
run: echo "TEST_DATABASE_URL=postgres://postgres:postgres@localhost:5432/test_db" >> $GITHUB_ENV
- name: Install Rust and Cargo
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env
- name: Run Tests
run: cargo test
- uses: shuttle-hq/deploy-action@main
with:
name: "root"
no-test: "true"
deploy-key: ${{ secrets.SHUTTLE_API_KEY }}
secrets: |
ROOT_SECRET = '${{ secrets.ROOT_SECRET }}'