mirror of
https://github.com/logos-messaging/go-multiaddr.git
synced 2026-01-05 22:43:10 +00:00
sync: update CI config files (#149)
This commit is contained in:
parent
e6b70259b5
commit
32974f6a47
9
.github/workflows/go-check.yml
vendored
9
.github/workflows/go-check.yml
vendored
@ -16,11 +16,12 @@ jobs:
|
|||||||
run: go install honnef.co/go/tools/cmd/staticcheck@be534f007836a777104a15f2456cd1fffd3ddee8 # v2020.2.2
|
run: go install honnef.co/go/tools/cmd/staticcheck@be534f007836a777104a15f2456cd1fffd3ddee8 # v2020.2.2
|
||||||
- name: Check that go.mod is tidy
|
- name: Check that go.mod is tidy
|
||||||
run: |
|
run: |
|
||||||
cp go.mod go.mod.orig
|
|
||||||
cp go.sum go.sum.orig
|
|
||||||
go mod tidy
|
go mod tidy
|
||||||
diff go.mod go.mod.orig
|
if [[ -n $(git ls-files --other --exclude-standard --directory -- go.sum) ]]; then
|
||||||
diff go.sum go.sum.orig
|
echo "go.sum was added by go mod tidy"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
git diff --exit-code -- go.sum go.mod
|
||||||
- name: gofmt
|
- name: gofmt
|
||||||
if: ${{ success() || failure() }} # run this step even if the previous one failed
|
if: ${{ success() || failure() }} # run this step even if the previous one failed
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
2
.github/workflows/go-test.yml
vendored
2
.github/workflows/go-test.yml
vendored
@ -32,7 +32,7 @@ jobs:
|
|||||||
if: ${{ matrix.os == 'ubuntu' }} # speed things up. Windows and OSX VMs are slow
|
if: ${{ matrix.os == 'ubuntu' }} # speed things up. Windows and OSX VMs are slow
|
||||||
run: go test -v -race ./...
|
run: go test -v -race ./...
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage to Codecov
|
||||||
uses: codecov/codecov-action@fcebab03f26c7530a22baa63f06b3e0515f0c7cd # v1.3.1
|
uses: codecov/codecov-action@967e2b38a85a62bd61be5529ada27ebc109948c2 # v1.4.1
|
||||||
with:
|
with:
|
||||||
file: coverage.txt
|
file: coverage.txt
|
||||||
env_vars: OS=${{ matrix.os }}, GO=${{ matrix.go }}
|
env_vars: OS=${{ matrix.os }}, GO=${{ matrix.go }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user