diff --git a/.github/workflows/cover.yml b/.github/workflows/cover.yml index 2beeefa..8e00209 100644 --- a/.github/workflows/cover.yml +++ b/.github/workflows/cover.yml @@ -4,20 +4,22 @@ on: - master pull_request: name: Coverage +permissions: + contents: read jobs: coverage: runs-on: ubuntu-latest steps: - name: Install Go - uses: actions/setup-go@v5 + uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: - go-version: '1.23.x' + go-version: '1.25.x' - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Test run: | go test -coverprofile=profile.cov ./... - name: Send coverage - uses: shogo82148/actions-goveralls@v1 + uses: shogo82148/actions-goveralls@9606dbc5ac5cf888a0e9ef901515c3cd516a2790 # v1.11.0 with: path-to-profile: profile.cov diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e2cdef8..0a86d43 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,20 +4,22 @@ on: - master pull_request: name: Tests +permissions: + contents: read jobs: test: strategy: matrix: - go-version: [1.23.x, 1.24.x, 1.25.x] + go-version: [1.25.x, 1.26.x] platform: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.platform }} steps: - name: Install Go - uses: actions/setup-go@v5 + uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: go-version: ${{ matrix.go-version }} - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Test run: | go version