Skip to content

fix(deps): update module github.com/stevenle/topsort to v2 #332

fix(deps): update module github.com/stevenle/topsort to v2

fix(deps): update module github.com/stevenle/topsort to v2 #332

Workflow file for this run

name: tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5
with:
go-version: '1.21.x'
- name: download go mods
run: |
go mod download
- name: run go tests
run: |
go test -timeout 60s -coverprofile=coverage.txt -covermode=atomic ./...
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Upload coverage reports to Codeclimate
if: github.event_name != 'pull_request'
uses: paambaati/codeclimate-action@f429536ee076d758a24705203199548125a28ca7 # v9.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CODECLIMATE_TEST_REPORTER_ID }}
with:
prefix: "github.com/ekristen/libnuke"
coverageLocations: coverage.txt:gocov