From b02e01aba61a3ee5aee5c0ca44a5043e7286351b Mon Sep 17 00:00:00 2001 From: Steven Tang Date: Fri, 15 Dec 2023 22:20:50 +1100 Subject: [PATCH] fix: checkout repo first --- .github/workflows/ci.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3f21ce7f..61526731 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,17 +10,15 @@ jobs: permissions: contents: read steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v4 + - name: Set up Go 1.x uses: actions/setup-go@v4 with: go-version: ^1.21 - cache-dependency-path: | - go.sum id: go - - name: Check out code into the Go module directory - uses: actions/checkout@v4 - - name: Get dependencies run: go get @@ -44,15 +42,13 @@ jobs: db: [sqlite, postgres, mysql, mariadb] steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v4 + - name: Set up Go 1.x uses: actions/setup-go@v4 with: go-version: ^1.21 - cache-dependency-path: | - go.sum id: go - - name: Check out code into the Go module directory - uses: actions/checkout@v4 - - run: ./testing/run_api_tests.sh ${{ matrix.db }} --migration