Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Run unit tests separately from e2e tests #867

Closed
wants to merge 14 commits into from
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Automated Tests
name: E2E Tests
on:
push:
branches:
Expand All @@ -9,7 +9,7 @@ on:
- main
- release/v*
jobs:
Automated_Tests:
E2E_Tests:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
Expand All @@ -23,8 +23,6 @@ jobs:
with:
go-version: "1.19" # The Go version to download (if necessary) and use.

- name: Unit, integration and difference tests
run: go test ./...

- name: E2E tests
run: make test-e2e-short
run: go run ./tests/e2e/... --happy-path-only --verbose

15 changes: 15 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Tests
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
go-version: [1.19.x, 1.20.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v3
- run: go test ./...