Skip to content

Commit

Permalink
Add tests to CI/CD #4
Browse files Browse the repository at this point in the history
  • Loading branch information
sas1024 committed Mar 29, 2023
1 parent 7d795b2 commit 2a124c6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- 5432:5432
env:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: newsportal
options: >-
--health-cmd pg_isready
--health-interval 10s
Expand All @@ -31,11 +32,8 @@ jobs:
- uses: actions/checkout@v2

- name: Prepare test db
run: |
apt-get update
apt-get install --yes --no-install-recommends postgresql-client
createdb -E UTF-8 -O postgres -T template0 --lc-collate C --lc-ctype=ru_RU.UTF-8 newsportal
psql newsportal < generators/xml/testdata/schema.sql
run: psql newsportal < schema.sql
working-directory: ./generators/xml/testdata/

- name: Test
run: go test -v ./...
Expand Down

0 comments on commit 2a124c6

Please sign in to comment.