-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(action): migrating to github action from travis (#27)
* move bdd test cases to github action * remove travis file and move ansible to github * set the default image org as openebs Signed-off-by: Pawan <[email protected]>
- Loading branch information
1 parent
a7c1102
commit 3d53565
Showing
5 changed files
with
102 additions
and
63 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,9 +44,70 @@ jobs: | |
- name: Upload Coverage Report | ||
uses: codecov/codecov-action@v1 | ||
|
||
bdd-test: | ||
needs: ['unit-test'] | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
kubernetes: [v1.20.1] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Go 1.14 | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.14.7 | ||
|
||
- name: Setup Minikube-Kubernetes | ||
uses: manusa/[email protected] | ||
with: | ||
minikube version: v1.16.0 | ||
kubernetes version: ${{ matrix.kubernetes }} | ||
github token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build images locally | ||
run: make lvm-driver-image || exit 1; | ||
|
||
- name: bootstrap | ||
run: make bootstrap | ||
|
||
- name: Running tests | ||
run: ./ci/ci-test.sh | ||
|
||
ansible: | ||
runs-on: ubuntu-latest | ||
needs: ['lint', 'unit-test', 'bdd-test'] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set Image Org | ||
# sets the default IMAGE_ORG to openebs | ||
run: | | ||
[ -z "${{ secrets.IMAGE_ORG }}" ] && IMAGE_ORG=openebs || IMAGE_ORG=${{ secrets.IMAGE_ORG}} | ||
echo "IMAGE_ORG=${IMAGE_ORG}" >> $GITHUB_ENV | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Build and push the ansible image | ||
uses: docker/build-push-action@v2 | ||
with: | ||
file: ./e2e-tests/Dockerfile | ||
push: true | ||
load: false | ||
platforms: linux/amd64 | ||
tags: | | ||
${{ env.IMAGE_ORG }}/lvm-localpv-e2e:ci | ||
csi-driver: | ||
runs-on: ubuntu-latest | ||
needs: ['lint', 'unit-test'] | ||
needs: ['lint', 'unit-test', 'bdd-test'] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
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 |
---|---|---|
|
@@ -56,10 +56,41 @@ jobs: | |
- name: Upload Coverage Report | ||
uses: codecov/codecov-action@v1 | ||
|
||
bdd-test: | ||
needs: ['unit-test'] | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
kubernetes: [v1.20.1] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Go 1.14 | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.14.7 | ||
|
||
- name: Setup Minikube-Kubernetes | ||
uses: manusa/[email protected] | ||
with: | ||
minikube version: v1.16.0 | ||
kubernetes version: ${{ matrix.kubernetes }} | ||
github token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build images locally | ||
run: make lvm-driver-image || exit 1; | ||
|
||
- name: bootstrap | ||
run: make bootstrap | ||
|
||
- name: Running tests | ||
run: ./ci/ci-test.sh | ||
|
||
csi-driver: | ||
runs-on: ubuntu-latest | ||
needs: ['lint', 'unit-test'] | ||
needs: ['lint', 'unit-test', 'bdd-test'] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
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 @@ | ||
move the bdd test cases to github action |
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