Skip to content

Commit

Permalink
Consolidate GH workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
nstogner committed Jan 12, 2024
1 parent 4efd04f commit 0f2584b
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 48 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/integration-tests.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/load-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ run-name: Load tests by @${{ github.actor }}
on: workflow_dispatch

jobs:
perf-tests:
load-tests:
runs-on: ubuntu-latest
permissions:
contents: "read"
Expand Down
21 changes: 0 additions & 21 deletions .github/workflows/race-tests.yml

This file was deleted.

21 changes: 18 additions & 3 deletions .github/workflows/e2e-tests.yml → .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: End-to-end tests
run-name: E2E tests by @${{ github.actor }}
name: Tests
run-name: Run tests by @${{ github.actor }}

on:
push:
Expand All @@ -8,7 +8,22 @@ on:
pull_request:

jobs:
install:
unit-race-integration-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ">=1.21.0"
- name: Run unit tests
run: make test-unit
- name: Run race tests
run: make test-race
- name: Run integration tests
run: make test-integration
e2e-tests:
runs-on: ubuntu-latest

steps:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ENVTEST_K8S_VERSION = 1.27.1

.PHONY: test
test: test-unit test-integration test-race test-e2e
test: test-unit test-race test-integration test-e2e

.PHONY: test-unit
test-unit:
Expand Down
12 changes: 11 additions & 1 deletion docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,20 @@

## Testing

Run all tests (takes a while).
```sh
make test
```

*OR*

Run specific tests.

```bash
make test-unit
make test-integration
make test-race
make test-integration
make test-e2e
```

## Local Deployment
Expand Down

0 comments on commit 0f2584b

Please sign in to comment.