Skip to content

Commit 4091eed

Browse files
committed
Check out code before setting up Go
This allows for caching the Go dependencies.
1 parent 87d771e commit 4091eed

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@ jobs:
7373
pgx-test-database: "postgresql://[email protected]:26257/pgx_test?sslmode=disable&experimental_enable_temp_tables=on"
7474

7575
steps:
76+
- name: Check out code into the Go module directory
77+
uses: actions/checkout@v3
78+
7679
- name: Set up Go ${{ matrix.go-version }}
7780
uses: actions/setup-go@v4
7881
with:
7982
go-version: ${{ matrix.go-version }}
8083

81-
- name: Check out code into the Go module directory
82-
uses: actions/checkout@v3
83-
8484
- name: Setup database server for testing
8585
run: ci/setup_test.bash
8686
env:
@@ -136,14 +136,14 @@ jobs:
136136
with:
137137
database: pgx_test
138138

139+
- name: Check out code into the Go module directory
140+
uses: actions/checkout@v3
141+
139142
- name: Set up Go ${{ matrix.go-version }}
140143
uses: actions/setup-go@v4
141144
with:
142145
go-version: ${{ matrix.go-version }}
143146

144-
- name: Check out code into the Go module directory
145-
uses: actions/checkout@v3
146-
147147
- name: Initialize test database
148148
run: |
149149
psql -f testsetup/postgresql_setup.sql pgx_test

0 commit comments

Comments
 (0)