Skip to content

Commit

Permalink
NEOS-1345: split integration test suites (#2504)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickzelei authored Aug 22, 2024
1 parent 7cf1e8d commit df2e970
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 2,739 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ jobs:
- name: Vet
run: go vet ./...

test:
name: test
unit-test:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -70,7 +70,29 @@ jobs:

- name: Test
run: |
go test -timeout 1800s -v -race -coverprofile=coverage.out -covermode=atomic ./...
go test -race -coverprofile=unit-coverage.out -covermode=atomic ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

integration-tests:
name: Integration Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache-dependency-path: go.sum

- name: Run Integration Tests
run: |
go test -race -timeout 1800s -coverprofile=integration-coverage.out -covermode=atomic -run TestIntegrationTestSuite ./...
env:
INTEGRATION_TESTS_ENABLED: 1

Expand Down
108 changes: 0 additions & 108 deletions worker/pkg/query-builder/integration_test.go

This file was deleted.

Loading

0 comments on commit df2e970

Please sign in to comment.