-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: enable new ci and build.yml changes
Signed-off-by: Diwakar Sharma <[email protected]>
- Loading branch information
1 parent
34049cb
commit 8d21b1a
Showing
4 changed files
with
25 additions
and
318 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -3,16 +3,16 @@ name: Pull Request CI | |
on: | ||
pull_request: | ||
branches: | ||
- 'develop' | ||
- 'release/**' | ||
- develop | ||
- "release/**" | ||
paths-ignore: | ||
- '*.md' | ||
- 'BUILDMETA' | ||
- 'changelogs/**' | ||
- 'docs/**' | ||
- 'design/**' | ||
- 'LICENSE' | ||
- 'MAINTAINERS' | ||
- "*.md" | ||
- "BUILDMETA" | ||
- "changelogs/**" | ||
- "docs/**" | ||
- "design/**" | ||
- "LICENSE" | ||
- "MAINTAINERS" | ||
|
||
jobs: | ||
lint: | ||
|
@@ -29,12 +29,6 @@ jobs: | |
go-version: 1.19.9 | ||
cache: false | ||
|
||
- name: Format test | ||
run: make format | ||
|
||
- name: bootstrap | ||
run: make bootstrap | ||
|
||
- name: Lint Check | ||
uses: golangci/golangci-lint-action@v4 | ||
with: | ||
|
@@ -46,19 +40,19 @@ jobs: | |
with: | ||
github_token: ${{ secrets.github_token }} | ||
reporter: github-pr-review | ||
path: '.' | ||
pattern: '*.sh' | ||
path: "." | ||
pattern: "*.sh" | ||
|
||
- 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: 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 | ||
|
@@ -79,15 +73,15 @@ jobs: | |
run: make test | ||
|
||
- name: Upload Coverage Report | ||
uses: codecov/codecov-action@v4 | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
file: ./coverage.txt | ||
name: coverage-$(date +%s) | ||
flags: unittests | ||
|
||
bdd-tests: | ||
needs: ['unit-tests'] | ||
needs: ["unit-tests"] | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
|
@@ -96,11 +90,6 @@ 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 | ||
|
@@ -119,7 +108,7 @@ jobs: | |
driver: none | ||
kubernetes-version: ${{ matrix.kubernetes }} | ||
cni: calico | ||
start-args: '--install-addons=false' | ||
start-args: "--install-addons=false" | ||
|
||
- name: Setting environment variables | ||
run: | | ||
|
@@ -142,7 +131,7 @@ jobs: | |
|
||
csi-driver: | ||
runs-on: ubuntu-latest | ||
needs: ['lint', 'unit-tests', 'bdd-tests'] | ||
needs: ["lint", "unit-tests", "bdd-tests"] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.