mirror of
https://github.com/TwiN/gatus.git
synced 2024-12-14 11:58:04 +00:00
3350e81443
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3.1.3 to 3.1.4. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/codecov/codecov-action/compare/v3.1.3...v3.1.4) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
33 lines
1,012 B
YAML
33 lines
1,012 B
YAML
name: test
|
|
on:
|
|
pull_request:
|
|
paths-ignore:
|
|
- '*.md'
|
|
- '.examples/**'
|
|
push:
|
|
branches:
|
|
- master
|
|
paths-ignore:
|
|
- '*.md'
|
|
- '.github/**'
|
|
- '.examples/**'
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
steps:
|
|
- uses: actions/setup-go@v4
|
|
with:
|
|
go-version: 1.19
|
|
- uses: actions/checkout@v3
|
|
- name: Build binary to make sure it works
|
|
run: go build
|
|
- name: Test
|
|
# We're using "sudo" because one of the tests leverages ping, which requires super-user privileges.
|
|
# As for the 'env "PATH=$PATH" "GOROOT=$GOROOT"', we need it to use the same "go" executable that
|
|
# was configured by the "Set up Go" step (otherwise, it'd use sudo's "go" executable)
|
|
run: sudo env "PATH=$PATH" "GOROOT=$GOROOT" go test ./... -race -coverprofile=coverage.txt -covermode=atomic
|
|
- name: Codecov
|
|
uses: codecov/codecov-action@v3.1.4
|
|
with:
|
|
files: ./coverage.txt
|