diff --git a/.github/workflows/kevm.yml b/.github/workflows/kevm.yml deleted file mode 100644 index 85452fe..0000000 --- a/.github/workflows/kevm.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Kevm tries to Go - -on: [push] - -jobs: - build: - - runs-on: ubuntu-latest - strategy: - matrix: - go-version: [ '1.20', '1.21' ] - - steps: - - uses: actions/checkout@v3 - - name: Setup Go - uses: actions/setup-go@v4 - with: - go-version: ${{ matrix.go-version }} - - name: Install dependencies - run: go get . - - name: Test with Go - run: go test -json > TestResults-${{ matrix.go-version }}.json - - name: Upload Go test results - uses: actions/upload-artifact@v3 - with: - name: Go-results-${{ matrix.go-version }} - path: TestResults-${{ matrix.go-version }}.json \ No newline at end of file diff --git a/.github/workflows/unit-tests.yaml b/.github/workflows/unit-tests.yaml index 9280bcc..3729887 100644 --- a/.github/workflows/unit-tests.yaml +++ b/.github/workflows/unit-tests.yaml @@ -1,29 +1,27 @@ -name: Units tests -on: [push, pull_request] +name: Build/Test Package + +on: [push] + jobs: - checks: - name: test + build: + runs-on: ubuntu-latest + strategy: + matrix: + go-version: [ '1.21' ] + steps: - - uses: actions/checkout@61b9e3751b92087fd0b06925ba6dd6314e06f089 - - name: Setup go - uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 - with: - go-version: 1.20 - - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 - with: - path: | - ~/go/pkg/mod - ~/.cache/go-build - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go- - - name: Run tests - run: go test -v -covermode=count -coverprofile=coverage.out - - name: Convert coverage to lcov - uses: jandelgado/gcov2lcov-action@c680c0f7c7442485f1749eb2a13e54a686e76eb5 - - name: Coveralls - uses: coverallsapp/github-action@f350da2c033043742f89e8c0b7b5145a1616da6d - with: - github-token: ${{ secrets.github_token }} - path-to-lcov: coverage.lcov \ No newline at end of file + - uses: actions/checkout@v3 + - name: Setup Go + uses: actions/setup-go@v4 + with: + go-version: ${{ matrix.go-version }} + - name: Install dependencies + run: go get . + - name: Test with Go + run: go test -json > TestResults-${{ matrix.go-version }}.json + - name: Upload Go test results + uses: actions/upload-artifact@v3 + with: + name: Go-results-${{ matrix.go-version }} + path: TestResults-${{ matrix.go-version }}.json \ No newline at end of file