-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update readme * Change test names / directories * Update development.md guide NOTE: No actual changes to testing code were made. Changes to workflow files are mostly for readability of files and also of the checks as displayed on PRs.
- Loading branch information
Showing
12 changed files
with
199 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,34 +4,43 @@ run-name: Load tests by @${{ github.actor }} | |
on: workflow_dispatch | ||
|
||
jobs: | ||
perf-tests: | ||
k6: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: "read" | ||
id-token: "write" | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- id: "auth" | ||
|
||
- name: Authenticate with GCP | ||
uses: "google-github-actions/auth@v1" | ||
with: | ||
workload_identity_provider: "projects/819220466562/locations/global/workloadIdentityPools/github/providers/my-repo" | ||
service_account: "[email protected]" | ||
- name: "Set up Cloud SDK" | ||
|
||
- name: Set up cloud SDK | ||
uses: "google-github-actions/setup-gcloud@v1" | ||
- id: "get-credentials" | ||
|
||
- name: Get credentials | ||
uses: "google-github-actions/get-gke-credentials@v1" | ||
with: | ||
cluster_name: "lingo-dev" | ||
location: "us-central1" | ||
- id: "get-pods" | ||
|
||
- name: Get pods | ||
run: "kubectl get pods" | ||
- id: "install-skaffold" | ||
|
||
- name: Install skaffold | ||
run: | | ||
curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-amd64 | ||
chmod +x skaffold | ||
sudo mv skaffold /usr/local/bin | ||
- id: "configure-docker" | ||
- name: Configure docker | ||
run: gcloud auth configure-docker -q us-central1-docker.pkg.dev | ||
- id: "run-tests" | ||
|
||
- name: Run tests | ||
run: "./tests/load/test.sh" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Tests | ||
run-name: Run tests by @${{ github.actor }} | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
unit-and-integration: | ||
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 integration tests | ||
run: make test-integration | ||
|
||
e2e: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install kind | ||
run: | | ||
# For AMD64 / x86_64 | ||
[ $(uname -m) = x86_64 ] && curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.20.0/kind-linux-amd64 | ||
# For ARM64 | ||
[ $(uname -m) = aarch64 ] && curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.20.0/kind-linux-arm64 | ||
chmod +x ./kind | ||
sudo mv ./kind /usr/local/bin/kind | ||
- name: Install skaffold | ||
run: | | ||
curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-amd64 | ||
chmod +x skaffold | ||
sudo mv skaffold /usr/local/bin | ||
- name: Run e2e tests | ||
run: make test-e2e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.