Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fba0473ccd | ||
|
|
d3f130af1c | ||
|
|
f953915e15 | ||
|
|
fc1ff57fc8 |
No files matched your search
@@ -55,7 +55,6 @@ jobs:
|
||||
matrix:
|
||||
os: ["ubuntu", "windows", "macos"]
|
||||
runs-on: ${{ matrix.os }}-latest
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
@@ -67,37 +66,6 @@ jobs:
|
||||
with:
|
||||
go-version-file: 'go.mod'
|
||||
|
||||
- name: Get StaticCheck
|
||||
if: ${{ matrix.os == 'ubuntu' }}
|
||||
run: go install honnef.co/go/tools/cmd/staticcheck@latest
|
||||
|
||||
- name: Gomod
|
||||
if: ${{ matrix.os == 'ubuntu' }}
|
||||
run: |
|
||||
go mod tidy
|
||||
if [[ -n $(git ls-files --other --exclude-standard --directory -- go.sum) ]]; then
|
||||
echo "go.sum was added by go mod tidy"
|
||||
exit 1
|
||||
fi
|
||||
git diff --exit-code -- go.sum go.mod
|
||||
|
||||
- name: Gofmt
|
||||
if: ${{ matrix.os == 'ubuntu' && (success() || failure()) }} # run this step even if the previous one failed
|
||||
run: |
|
||||
out=$(gofmt -s -l .)
|
||||
if [[ -n "$out" ]]; then
|
||||
echo $out | awk '{print "::error file=" $0 ",line=0,col=0::File is not gofmt-ed."}'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Vet
|
||||
if: ${{ matrix.os == 'ubuntu' && (success() || failure()) }} # run this step even if the previous one failed
|
||||
run: go vet ./...
|
||||
|
||||
- name: StaticCheck
|
||||
if: ${{ matrix.os == 'ubuntu' && (success() || failure()) }} # run this step even if the previous one failed
|
||||
run: staticcheck ./...
|
||||
|
||||
- name: Test
|
||||
run: go test ./...
|
||||
|
||||
|
||||
@@ -5,6 +5,9 @@ on:
|
||||
workflows: ["Run tests"]
|
||||
types:
|
||||
- completed
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
|
||||
jobs:
|
||||
version:
|
||||
|
||||
@@ -2,4 +2,4 @@ module github.com/iand/microdata
|
||||
|
||||
go 1.21.4
|
||||
|
||||
require golang.org/x/net v0.18.0
|
||||
require golang.org/x/net v0.19.0
|
||||
@@ -1,2 +1,2 @@
|
||||
golang.org/x/net v0.18.0 h1:mIYleuAkSbHh0tCv7RvjL3F6ZVbLjq4+R7zbOn3Kokg=
|
||||
golang.org/x/net v0.18.0/go.mod h1:/czyP5RqHAH4odGYxBJ1qz0+CE5WZ+2j1YgoEo8F2jQ=
|
||||
golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c=
|
||||
golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U=
|
||||
Reference in new issue
Block a user