Update GitHub Actions workflow #17
Workflow file for this run
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
name: Helm Chart Testing | |
on: | |
pull_request: | |
branches: [master] | |
jobs: | |
helm: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Create k3s Cluster | |
uses: debianmaster/[email protected] | |
with: | |
version: 'latest' | |
- name: Create namespace | |
run: kubectl create ns tesk | |
- name: Helm Deps | |
run: | | |
for dir in $(ls -d charts/*); do | |
helm dependency update $dir; | |
done | |
- name: Helm Lint | |
run: | | |
for dir in $(ls -d charts/*); do | |
helm lint $dir | |
done | |
- name: Apply Helm file | |
run: helm install -n tesk tesk . -f values.yaml | |
working-directory: charts/tesk | |
- name: Sleep for 30 seconds | |
run: sleep 30 | |
- name: Get Helm and k8s | |
run: helm list -n tesk && kubectl get all -n tesk | |
- name: curl URL | |
run: curl localhost -vL | |
- name: Configure Git | |
run: | | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "[email protected]" | |
- name: Run chart-releaser | |
uses: helm/[email protected] | |
with: | |
skip_existing: true | |
env: | |
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |