Skip to content

Commit

Permalink
Fix github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ukautz committed Apr 22, 2023
1 parent 6e2d87a commit 353017e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Test and coverage

on: [push, pull_request]
on: [pull_request]

jobs:
build:
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Test PRs
on:
pull_request:
branches:
- master
- main

jobs:
test:
Expand All @@ -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 ./...

0 comments on commit 353017e

Please sign in to comment.