diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index f457b9d..2b97b2c 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -1,6 +1,6 @@ name: Test and coverage -on: [push, pull_request] +on: [pull_request] jobs: build: @@ -11,7 +11,7 @@ jobs: fetch-depth: 2 - uses: actions/setup-go@v4 with: - go-version: "1.17" + go-version: "^1.17" - name: Run coverage run: go test -race -coverprofile=coverage.txt -covermode=atomic github.com/ukautz/obsidian-meets-hugo/pkg - name: Upload coverage to Codecov diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 92e86d6..a67d5b6 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -3,7 +3,7 @@ name: Test PRs on: pull_request: branches: - - master + - main jobs: test: @@ -14,6 +14,6 @@ jobs: uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: "^1.16.0" # The Go version to download (if necessary) and use. + go-version: "^1.17" # The Go version to download (if necessary) and use. - run: go version - run: go test -v ./...