diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 536118a..d55ecaa 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -18,16 +18,16 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Setup go + uses: actions/setup-go@v5 + with: + go-version-file: 'go.mod' + - name: Initialize CodeQL uses: github/codeql-action/init@v2 with: languages: go queries: security-and-quality - - name: Setup go - uses: actions/setup-go@v5 - with: - go-version: '1.22' - - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 28ee3f8..e3527d1 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -7,13 +7,13 @@ jobs: runs-on: ubuntu-latest steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Set up Go uses: actions/setup-go@v3 with: - go-version: "1.22" - - - name: Checkout repository - uses: actions/checkout@v4 + go-version-file: 'go.mod' - name: Check dependencies run: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 369c0cf..fe88c48 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,18 +8,17 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] - go: ["1.22"] runs-on: ${{ matrix.os }} steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Set up Go uses: actions/setup-go@v3 with: - go-version: ${{ matrix.go }} - - - name: Checkout repository - uses: actions/checkout@v4 + go-version-file: 'go.mod' - name: Run tests run: go test -v ./...