Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dehwyy committed Dec 17, 2023
1 parent 2f9788b commit bfb2510
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/rust.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.21.x' ]

services:
postgres:
Expand All @@ -29,8 +32,21 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v4

- name: Install Task
uses: arduino/setup-task@v1
with:
version: 3.x

- name: Run migration
run: task db:test-migrate
env:
DATABASE_TEST_DSN: "host=localhost user=postgres password=root dbname=makoto_test port=5432 sslmode=disable"

- name: run tests
run: cargo test --verbose
run: cargo test
env:
DATABASE_TEST_DSN: "host=localhost user=postgres password=root dbname=makoto_test port=5432 sslmode=disable"
DATABASE_TEST_URL: "postgres://postgres:postgres@localhost/postgres"

0 comments on commit bfb2510

Please sign in to comment.