Skip to content

Commit

Permalink
run unit tests and integration tests in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
laverya committed Apr 10, 2023
1 parent f5487db commit 99fd675
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 3 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:

build:
unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -21,6 +21,16 @@ jobs:
- name: Test
run: make test

integration-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19

- name: Build
run: make build

Expand Down
29 changes: 27 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:

test:
unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -20,11 +20,36 @@ jobs:
- name: Test
run: make test

integration-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19

- name: Build
run: make build

- name: Create k8s Kind Cluster
uses: helm/kind-action@v1.4.0

- name: Create Testdata in Cluster
run: ./testing/init.sh

- name: Run PVMigrate
run: ./bin/pvmigrate --source-sc int-source --dest-sc int-dest

- name: Validate Cluster End State
run: ./testing/validate.sh

goreleaser:
runs-on: ubuntu-latest
needs:
- test
- unit-test
- integration-test
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Checkout
Expand Down

0 comments on commit 99fd675

Please sign in to comment.