mirror of https://github.com/jackc/pgx.git
Check out code before setting up Go
This allows for caching the Go dependencies.pull/1697/head
parent
87d771ef9c
commit
4091eedf03
|
@ -73,14 +73,14 @@ jobs:
|
||||||
pgx-test-database: "postgresql://root@127.0.0.1:26257/pgx_test?sslmode=disable&experimental_enable_temp_tables=on"
|
pgx-test-database: "postgresql://root@127.0.0.1:26257/pgx_test?sslmode=disable&experimental_enable_temp_tables=on"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Check out code into the Go module directory
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up Go ${{ matrix.go-version }}
|
- name: Set up Go ${{ matrix.go-version }}
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.go-version }}
|
go-version: ${{ matrix.go-version }}
|
||||||
|
|
||||||
- name: Check out code into the Go module directory
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Setup database server for testing
|
- name: Setup database server for testing
|
||||||
run: ci/setup_test.bash
|
run: ci/setup_test.bash
|
||||||
env:
|
env:
|
||||||
|
@ -136,14 +136,14 @@ jobs:
|
||||||
with:
|
with:
|
||||||
database: pgx_test
|
database: pgx_test
|
||||||
|
|
||||||
|
- name: Check out code into the Go module directory
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up Go ${{ matrix.go-version }}
|
- name: Set up Go ${{ matrix.go-version }}
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.go-version }}
|
go-version: ${{ matrix.go-version }}
|
||||||
|
|
||||||
- name: Check out code into the Go module directory
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Initialize test database
|
- name: Initialize test database
|
||||||
run: |
|
run: |
|
||||||
psql -f testsetup/postgresql_setup.sql pgx_test
|
psql -f testsetup/postgresql_setup.sql pgx_test
|
||||||
|
|
Loading…
Reference in New Issue