diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5ce6da3..9fd8da7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,46 +1,22 @@ - -name: Tests - on: [push, pull_request] -permissions: - contents: read - +name: Run Tests jobs: test: - strategy: - matrix: - go-version: ["1.18.x", "1.19.x", "1.20.x", "1.21.x", "1.22.x"] - platform: [ubuntu-latest, macos-latest, windows-latest] - runs-on: ${{ matrix.platform }} + runs-on: ubuntu-latest steps: - - name: Install Go - if: success() - uses: actions/setup-go@v5 - with: - go-version: ${{ matrix.go-version }} - name: Checkout code uses: actions/checkout@v4 - - name: Run tests - run: go test -v -covermode=count - - coverage: - runs-on: ubuntu-latest - steps: - name: Install Go - if: success() uses: actions/setup-go@v5 with: - go-version: 1.18.x - - name: Checkout code - uses: actions/checkout@v4 - - name: Calc coverage + go-version-file: go.mod + - name: Run tests with coverage run: | go test -v -covermode=count -coverprofile=coverage.out - - name: Convert coverage.out to coverage.lcov - uses: jandelgado/gcov2lcov-action@v1.0.9 - name: Coveralls - uses: coverallsapp/github-action@v2.3.0 + uses: coverallsapp/github-action@v2.3.3 with: github-token: ${{ secrets.github_token }} - path-to-lcov: coverage.lcov \ No newline at end of file + file: coverage.out + format: golang \ No newline at end of file