Skip to content

Commit

Permalink
ci: enable new ci and build.yml changes
Browse files Browse the repository at this point in the history
Signed-off-by: Diwakar Sharma <[email protected]>
  • Loading branch information
dsharma-dc committed Sep 30, 2024
1 parent 34049cb commit 8d21b1a
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 318 deletions.
249 changes: 0 additions & 249 deletions .github/workflows/build.yml

This file was deleted.

51 changes: 20 additions & 31 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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: |
Expand All @@ -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
Expand Down
34 changes: 0 additions & 34 deletions .github/workflows/release-charts.yml

This file was deleted.

Loading

0 comments on commit 8d21b1a

Please sign in to comment.