Skip to content

Commit 40f5160

Browse files
authored
Merge pull request #139 from xsnippet/action-setup-postgres
Use `ikalnytskyi/action-setup-postgres` action
2 parents 8282b81 + 926080f commit 40f5160

File tree

3 files changed

+10
-70
lines changed

3 files changed

+10
-70
lines changed

.github/actions/setup-postgres/action.yml

Lines changed: 0 additions & 63 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ jobs:
6666
toolchain: ${{ matrix.rust-version }}
6767
override: true
6868

69-
- uses: ./.github/actions/setup-postgres
69+
- name: Setup PostgreSQL
70+
uses: ikalnytskyi/action-setup-postgres@v1
7071

7172
- uses: actions-rs/cargo@v1
7273
with:

.github/workflows/tests.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,13 @@ jobs:
7171
toolchain: ${{ matrix.rust-version }}
7272
override: true
7373

74-
- name: Start PostgreSQL
75-
uses: ./.github/actions/setup-postgres
74+
- name: Setup PostgreSQL
75+
uses: ikalnytskyi/action-setup-postgres@v1
76+
id: postgres
7677

7778
- name: Set ROCKET_DATABASE_URL
7879
run: |
79-
echo "ROCKET_DATABASE_URL=postgresql://postgres:postgres@localhost/postgres" >> $GITHUB_ENV
80+
echo "ROCKET_DATABASE_URL=${{ steps.postgres.outputs.connection-uri }}" >> $GITHUB_ENV
8081
8182
- name: Install Alembic and psycopg2
8283
run: |
@@ -118,11 +119,12 @@ jobs:
118119
toolchain: nightly
119120
override: true
120121

121-
- name: Start PostgreSQL
122-
uses: ./.github/actions/setup-postgres
122+
- name: Setup PostgreSQL
123+
uses: ikalnytskyi/action-setup-postgres@v1
124+
id: postgres
123125

124126
- run: |
125-
echo "ROCKET_DATABASE_URL=postgresql://postgres:postgres@localhost/postgres" >> $GITHUB_ENV
127+
echo "ROCKET_DATABASE_URL=${{ steps.postgres.outputs.connection-uri }}" >> $GITHUB_ENV
126128
127129
- run: cargo build
128130
- run: python -m venv testvenv

0 commit comments

Comments
 (0)