Skip to content

fix

fix #10

Workflow file for this run

name: Rust tests
on:
push:
branches:
- v3
env:

Check failure on line 8 in .github/workflows/rust.test.yml

View workflow run for this annotation

GitHub Actions / Rust tests

Invalid workflow file

The workflow is not valid. .github/workflows/rust.test.yml (Line: 8, Col: 5): Unexpected value ''
jobs:
tests:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.21.5'
- name: Install Task
uses: arduino/setup-task@v1
with:
version: 3.x
- name: 'Create env file'
run: |
touch .env
echo DATABASE_TEST_DSN="host=localhost user=postgres password=postgres dbname=postgres port=5432 sslmode=disable" >> .env
echo DATABASE_TEST_URL="postgres://postgres:postgres@localhost/postgres"
cat .env
- name: Run migration
run: task db:test-migrate
- name: run tests
run: cargo test