From 4091eedf03d661ba905f1a8711f2eaa99c508edc Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Sat, 22 Jul 2023 17:13:30 -0500 Subject: [PATCH] Check out code before setting up Go This allows for caching the Go dependencies. --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c3ac65cc..b0c57633 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,14 +73,14 @@ jobs: pgx-test-database: "postgresql://root@127.0.0.1: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: @@ -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