We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e58fcb commit 1e4ac9aCopy full SHA for 1e4ac9a
.github/workflows/deploy.yml
@@ -10,6 +10,25 @@ jobs:
10
deploy:
11
runs-on: ubuntu-latest
12
steps:
13
+ - name: Checkout Repository
14
+ uses: actions/checkout@v4
15
+ - name: Start PostgreSQL
16
+ run: |
17
+ docker run --name postgres-test -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=test_db -p 5432:5432 -d postgres:15
18
+
19
+ - name: Set TEST_DATABASE_URL
20
+ run: echo "TEST_DATABASE_URL=postgres://postgres:postgres@localhost:5432/test_db" >> $GITHUB_ENV
21
22
+ - name: Install Rust and Cargo
23
24
+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
25
+ source $HOME/.cargo/env
26
27
+ - name: Run Tests
28
+ run: cargo test
29
30
31
32
- uses: shuttle-hq/deploy-action@main
33
with:
34
name: "root"
0 commit comments