-
Notifications
You must be signed in to change notification settings - Fork 6
58 lines (53 loc) · 1.82 KB
/
lint-codebase.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Lint codebase
on: [pull_request]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Checkout Code
uses: actions/checkout@v2
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0
- name: Lint Code Base
uses: github/super-linter@v4
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FILTER_REGEX_EXCLUDE: 'chart/.*|README.md'
# helm-readme-generator:
# runs-on: ubuntu-20.04
# steps:
# - name: Checkout Code
# uses: actions/checkout@v2
# - name: Generate container 'helm-readme-generator'
# run: |
# git clone https://github.com/bitnami-labs/readme-generator-for-helm
# docker build \
# -t helm-readme-generator \
# readme-generator-for-helm/
# - name: Check README values synced
# run: |
# set -ex
# cd chart/
# cp README.md README_old.md
# docker run --rm \
# -v "${PWD}":/my_helm \
# -w /my_helm \
# helm-readme-generator \
# readme-generator \
# --readme README.md \
# --values values.yaml
#
# if ! cmp README.md README_old.md >/dev/null 2>&1
# then
# echo "Files aren't equal"
# diff README_old.md README.md
# exit 1
# else
# echo "Files look equal!"
# fi