-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Diwakar Sharma <[email protected]>
- Loading branch information
1 parent
ea480b6
commit c7d4173
Showing
15 changed files
with
374 additions
and
62 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 |
---|---|---|
@@ -1,29 +1,14 @@ | ||
# Copyright 2020 The OpenEBS Authors. All rights reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
name: ci | ||
name: Pull Request CI | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- 'develop' | ||
- 'v*' | ||
- release/**' | ||
paths-ignore: | ||
- '*.md' | ||
- 'BUILDMETA' | ||
- 'changelogs/**' | ||
- 'deploy/helm/**' | ||
- 'docs/**' | ||
- 'design/**' | ||
- 'LICENSE' | ||
|
@@ -35,6 +20,8 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Go 1.19 | ||
uses: actions/setup-go@v5 | ||
|
@@ -62,7 +49,19 @@ jobs: | |
path: '.' | ||
pattern: '*.sh' | ||
|
||
unit-test: | ||
- uses: cachix/install-nix-action@v22 | ||
- uses: rrbutani/[email protected] | ||
with: | ||
file: shell.nix | ||
- name: Check if the chart follows a valid semver version | ||
run: | | ||
branch_name="${{ github.event.pull_request.base.ref }}" | ||
./scripts/validate-chart-version.sh --branch $branch_name | ||
- name: Run chart-testing lint | ||
run: | | ||
ct lint --config ct.yaml | ||
unit-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
|
@@ -85,8 +84,8 @@ jobs: | |
name: coverage-$(date +%s) | ||
flags: unittests | ||
|
||
bdd-test: | ||
needs: ['unit-test'] | ||
bdd-tests: | ||
needs: ['unit-tests'] | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
|
@@ -95,13 +94,21 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- uses: cachix/install-nix-action@v22 | ||
- uses: rrbutani/[email protected] | ||
with: | ||
file: shell.nix | ||
|
||
- name: Set up Go 1.19 | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.19.9 | ||
cache: false | ||
|
||
- name: Build images locally | ||
run: make lvm-driver-image || exit 1; | ||
|
||
- name: Setup Minikube-Kubernetes | ||
uses: medyagh/setup-minikube@latest | ||
with: | ||
|
@@ -112,9 +119,6 @@ jobs: | |
cni: calico | ||
start-args: '--install-addons=false' | ||
|
||
- name: Build images locally | ||
run: make lvm-driver-image || exit 1; | ||
|
||
- name: bootstrap | ||
run: make bootstrap | ||
|
||
|
@@ -131,7 +135,7 @@ jobs: | |
|
||
csi-driver: | ||
runs-on: ubuntu-latest | ||
needs: ['lint', 'unit-test', 'bdd-test'] | ||
needs: ['lint', 'unit-tests', 'bdd-tests'] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
@@ -144,8 +148,6 @@ jobs: | |
- name: Set up Docker Buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v3 | ||
with: | ||
version: v0.13.1 | ||
|
||
- name: Build | ||
uses: docker/build-push-action@v5 | ||
|
@@ -154,5 +156,3 @@ jobs: | |
file: ./buildscripts/lvm-driver/Dockerfile.buildx | ||
push: false | ||
platforms: linux/amd64, linux/arm64 | ||
tags: | | ||
openebs/lvm-driver:ci |
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 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 |
---|---|---|
|
@@ -6,3 +6,4 @@ tags | |
*.swo | ||
*.swn | ||
*.idea | ||
*.test |
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 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 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 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 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 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
apiVersion: v2 | ||
name: crds | ||
version: 1.6.0 | ||
version: 1.7.0-develop | ||
description: A Helm chart that collects CustomResourceDefinitions (CRDs) from lvm-localpv. |
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 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 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,14 @@ | ||
{ | ||
"nixpkgs": { | ||
"branch": "release-23.05", | ||
"description": "A read-only mirror of NixOS/nixpkgs tracking the released channels. Send issues and PRs to", | ||
"homepage": "https://github.com/NixOS/nixpkgs", | ||
"owner": "NixOS", | ||
"repo": "nixpkgs", | ||
"rev": "9a333eaa80901efe01df07eade2c16d183761fa3", | ||
"sha256": "0xhqjli4m9wkzv7xhs6fr1iajdjbv7xnj0bwvwldq9s6arlwkhj3", | ||
"type": "tarball", | ||
"url": "https://github.com/NixOS/nixpkgs/archive/9a333eaa80901efe01df07eade2c16d183761fa3.tar.gz", | ||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" | ||
} | ||
} |
Oops, something went wrong.