diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5c8d7c8e..f4e032de 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,10 +15,10 @@ jobs: name: Mod runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 - uses: actions/setup-go@v4 with: - go-version: '1.20' - - uses: actions/checkout@v4 + go-version-file: 'go.mod' - uses: actions/cache@v3.3.2 with: path: ~/go/pkg/mod @@ -31,10 +31,10 @@ jobs: env: GOCACHE: "/tmp/go/cache" steps: + - uses: actions/checkout@v4 - uses: actions/setup-go@v4 with: - go-version: '1.20' - - uses: actions/checkout@v4 + go-version-file: 'go.mod' - uses: actions/cache@v3.3.2 with: path: ~/go/pkg/mod @@ -66,10 +66,10 @@ jobs: MYSQL_ROOT_PASSWORD: password MYSQL_DATABASE: anke-to steps: + - uses: actions/checkout@v4 - uses: actions/setup-go@v4 with: - go-version: '1.20' - - uses: actions/checkout@v4 + go-version-file: 'go.mod' - uses: actions/cache@v3.3.2 with: path: ~/go/pkg/mod @@ -97,10 +97,10 @@ jobs: name: Lint runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 - uses: actions/setup-go@v4 with: - go-version: '1.20' - - uses: actions/checkout@v4 + go-version-file: 'go.mod' - name: golangci-lint uses: reviewdog/action-golangci-lint@v2.3 with: