Skip to content

Commit

Permalink
Add github workflows
Browse files Browse the repository at this point in the history
Skip tekton
  • Loading branch information
Martin Jackson committed Jan 24, 2024
1 parent b963d38 commit e5eca33
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 19 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ansible-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@ jobs:

steps:
# Important: This sets up your GITHUB_WORKSPACE environment variable
- uses: actions/checkout@v4
- uses: actions/checkout@v3

- name: Lint Ansible Playbook
# Using the latest as of today (2022-06-23) v6.2.1
uses: ansible/[email protected]
uses: ansible/ansible-lint-action@v6
# Let's point it to the path
with:
path: "ansible/"
11 changes: 1 addition & 10 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
# Checkout the code base #
##########################
- name: Checkout Code
uses: actions/checkout@v4
uses: actions/checkout@v3
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0
Expand All @@ -48,18 +48,9 @@ jobs:
# VALIDATE_ALL_CODEBASE: false
# DEFAULT_BRANCH: main
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Run make test
run: |
make test
- name: Run make helmlint
run: |
make helmlint
- name: Run make helm kubeconform
run: |
curl -L -O https://github.com/yannh/kubeconform/releases/download/v0.4.13/kubeconform-linux-amd64.tar.gz
tar xf kubeconform-linux-amd64.tar.gz
sudo mv -v kubeconform /usr/local/bin
make kubeconform
6 changes: 3 additions & 3 deletions .github/workflows/superlinter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

steps:
- name: Checkout Code
uses: actions/checkout@v4
uses: actions/checkout@v3
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0
Expand All @@ -32,7 +32,7 @@ jobs:
VALIDATE_KUBERNETES_KUBECONFORM: false
VALIDATE_YAML: false
VALIDATE_ANSIBLE: false
VALIDATE_TEKTON: false
# VALIDATE_DOCKERFILE_HADOLINT: false
VALIDATE_DOCKERFILE_HADOLINT: false
# VALIDATE_MARKDOWN: false
# VALIDATE_NATURAL_LANGUAGE: false
VALIDATE_TEKTON: false
4 changes: 1 addition & 3 deletions common/.github/linters/.gitleaks.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@
# As of v4, gitleaks only matches against filename, not path in the
# files directive. Leaving content for backwards compatibility.
files = [
"ansible/plugins/modules/*.py",
"ansible/tests/unit/test_*.py",
"ansible/tests/unit/v1/*.yaml",
"tests/*.yaml",
]

0 comments on commit e5eca33

Please sign in to comment.