Skip to content

Commit

Permalink
Check out code before setting up Go
Browse files Browse the repository at this point in the history
This allows for caching the Go dependencies.
  • Loading branch information
jackc committed Jul 22, 2023
1 parent 87d771e commit 4091eed
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ jobs:
pgx-test-database: "postgresql://[email protected]:26257/pgx_test?sslmode=disable&experimental_enable_temp_tables=on"

steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3

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

- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Setup database server for testing
run: ci/setup_test.bash
env:
Expand Down Expand Up @@ -136,14 +136,14 @@ jobs:
with:
database: pgx_test

- name: Check out code into the Go module directory
uses: actions/checkout@v3

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

- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Initialize test database
run: |
psql -f testsetup/postgresql_setup.sql pgx_test
Expand Down

0 comments on commit 4091eed

Please sign in to comment.