From 043d3851706339cb2e8007078de4c79cabe649a8 Mon Sep 17 00:00:00 2001 From: Tim Abell Date: Tue, 30 Jan 2024 01:28:49 +0000 Subject: [PATCH] ci: Checkout before golang setup Got a cache warning about not having go.sum, perhaps this'll fix it --- .github/workflows/main.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b8de86c..26d0204 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -43,11 +43,6 @@ jobs: # options: --health-cmd="SELECT 1;" --health-interval=10s --health-timeout=5s --health-retries=10 steps: - - name: Setup Go - uses: actions/setup-go@v4 - with: - go-version: ${{ matrix.go-version }} - - name: Add mssql source run: | curl https://packages.microsoft.com/config/ubuntu/22.04/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list @@ -56,9 +51,15 @@ jobs: - name: Apt packages run: sudo apt-get install sqlite3 postgresql-client gcc-mingw-w64-x86-64 mysql-client mssql-tools18 unixodbc-dev + - uses: actions/checkout@v4 + + - name: Setup Go + uses: actions/setup-go@v4 + with: + go-version: ${{ matrix.go-version }} + - name: install go-junit-report run: go install github.com/jstemmer/go-junit-report/v2@latest - - uses: actions/checkout@v4 - name: Install dependencies run: go get .