mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-12 14:30:12 +01:00
chore(actions): move bdd tests to github actions (#293)
Signed-off-by: shubham <shubham.bajpai@mayadata.io>
This commit is contained in:
parent
6ec49df225
commit
6c6d593437
5 changed files with 95 additions and 64 deletions
48
.github/workflows/build.yml
vendored
48
.github/workflows/build.yml
vendored
|
|
@ -44,9 +44,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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue