chore(actions): move bdd tests to github actions (#293)

Signed-off-by: shubham <shubham.bajpai@mayadata.io>
This commit is contained in:
Shubham Bajpai 2021-03-05 20:08:29 +05:30 committed by GitHub
parent 6ec49df225
commit 6c6d593437
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 95 additions and 64 deletions

View file

@ -52,10 +52,55 @@ 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: Installation
run: |
sudo apt-get update -qq
sudo apt-get install -y zfsutils-linux
truncate -s 100G /tmp/disk.img
sudo zpool create zfspv-pool `sudo losetup -f /tmp/disk.img --show`
- name: Set up Go 1.14
uses: actions/setup-go@v2
with:
go-version: 1.14.7
- name: Setup Minikube-Kubernetes
uses: manusa/actions-setup-minikube@v2.3.0
with:
minikube version: v1.16.0
kubernetes version: ${{ matrix.kubernetes }}
github token: ${{ secrets.GITHUB_TOKEN }}
- name: Setting environment variables
run: |
echo "KUBECONFIG=$HOME/.kube/config" >> $GITHUB_ENV
echo "OPENEBS_NAMESPACE=openebs" >> $GITHUB_ENV
- name: Build images locally
run: make zfs-driver-image || exit 1;
- name: bootstrap
run: make bootstrap
- name: Running tests
run: |
make ci
make sanity
csi-driver:
runs-on: ubuntu-latest
needs: ['lint', 'unit-test']
needs: ['lint', 'bdd-test']
steps:
- name: Checkout
uses: actions/checkout@v2