diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 355e553..87e53b8 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -4,15 +4,6 @@ name: Test # This GitHub action creates launch test when a commit is done on: [push] jobs: - setup: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-go@v4 - with: - go-version: '1.20.0' # The Go version to download (if necessary) and use. - go-version-file: './go.mod' - - run: go mod tidy run-tests: runs-on: ubuntu-latest steps: @@ -21,4 +12,4 @@ jobs: with: go-version: '1.20.0' # The Go version to download (if necessary) and use. go-version-file: './go.mod' - - run: go test -v -tags=unit_tests ./... + - run: go mod tidy && go test -v -tags=unit_tests ./...