Skip to content

Commit fc8c160

Browse files
authored
Merge pull request #6 from fujexo/ghaction_lint
implement github action to lint pull requests and commits to master
2 parents b82a758 + d7a1c5e commit fc8c160

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/lint.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Lint
4+
5+
# Controls when the action will run.
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the master branch
8+
push:
9+
pull_request:
10+
branches: [ master ]
11+
12+
# Allows you to run this workflow manually from the Actions tab
13+
workflow_dispatch:
14+
15+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
16+
jobs:
17+
# This workflow contains a single job called "build"
18+
lint:
19+
# The type of runner that the job will run on
20+
runs-on: ubuntu-latest
21+
22+
# Steps represent a sequence of tasks that will be executed as part of the job
23+
steps:
24+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
25+
- uses: actions/checkout@v2
26+
27+
- name: Set up Helm
28+
uses: azure/setup-helm@v1
29+
with:
30+
version: v3.4.0
31+
32+
- name: Run a helm lint for all charts
33+
run: for chart in $(ls charts/); do helm lint charts/${chart}; done

0 commit comments

Comments
 (0)