Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update actions/checkout action to v4 #82

Merged
merged 2 commits into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 25 additions & 22 deletions .github/workflows/lint-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,6 @@ on:
workflow_dispatch:

jobs:
chart-unittest:
name: Unit test Helm charts
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install helm-unittest plugin
run: helm plugin install https://github.com/helm-unittest/helm-unittest
- name: Run unit tests
run: |
for chart in charts/*; do
if [ -d "$chart/tests/" ]; then
helm unittest $chart -3
else
echo "::warning file=$chart,title=Skipping unit test for $chart::$chart does not have a tests/ folder"
fi
done

changelog-checks:
name: Test changelog correctness and get next-version
runs-on: ubuntu-latest
Expand All @@ -37,7 +19,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -67,15 +49,36 @@ jobs:
id: version
uses: newrelic/release-toolkit/next-version@v1

chart-unittest:
name: Unit test Helm charts
runs-on: ubuntu-latest
needs:
- changelog-checks
if: ${{ needs.changelog-checks.outputs.skip-release != 'true' }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install helm-unittest plugin
run: helm plugin install https://github.com/helm-unittest/helm-unittest
- name: Run unit tests
run: |
for chart in charts/*; do
if [ -d "$chart/tests/" ]; then
helm unittest $chart -3
else
echo "::warning file=$chart,title=Skipping unit test for $chart::$chart does not have a tests/ folder"
fi
done

chart-lint:
name: Lint Helm charts
runs-on: ubuntu-latest
needs:
# Lint charts using the next version.
- changelog-checks
if: ${{ needs.changelog-checks.outputs.skip-release != 'true' }}
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install helm/chart-testing
Expand All @@ -99,7 +102,7 @@ jobs:
if: ${{ needs.changelog-checks.outputs.skip-release != 'true' }}
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

# Install Minikube to test chart installation
- name: Install Minikube
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-charts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
Loading