diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b45e2da..ccca53c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,31 +12,29 @@ on: jobs: test: + name: ๐Ÿงช Test runs-on: ubuntu-latest steps: - - name: Checkout code ๐Ÿ›Ž๏ธ - uses: actions/checkout@v2 + - name: Checkout code ๐Ÿ›Ž๏ธ + uses: actions/checkout@v4 - - name: Set up Go ๐Ÿงฐ - uses: actions/setup-go@v3 - with: - go-version: 1.22.4 + - name: Set up Go ๐Ÿงฐ + uses: actions/setup-go@v5 + with: + go-version-file: go.mod - - name: Install dependencies โฌ - run: go mod tidy + - name: Run tests ๐Ÿ› ๏ธ + run: make test - - name: Run tests ๐Ÿ› ๏ธ - run: make test + - name: Report coverage ๐Ÿ“ˆ + run: go test -coverprofile=coverage.out ./... - - name: Report coverage ๐Ÿ“ˆ - run: go test -coverprofile=coverage.out ./... - - - name: Upload coverage to Codecov ๐Ÿ“ค - uses: codecov/codecov-action@v2 - with: - files: coverage.out - flags: unittests - name: codecov-umbrella - fail_ci_if_error: true - token: ${{ secrets.CODECOV_TOKEN }} + - name: Upload coverage to Codecov ๐Ÿ“ค + uses: codecov/codecov-action@v4 + with: + files: coverage.out + flags: unittests + name: codecov-umbrella + fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }}