initial acm config
This commit is contained in:
48
tmp/acm-hub-bootstrap/common/.github/workflows/pattern-sh-ci.yml
vendored
Normal file
48
tmp/acm-hub-bootstrap/common/.github/workflows/pattern-sh-ci.yml
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
name: Run Bash Script on Multiple Distributions
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- "scripts/**"
|
||||
- "Makefile"
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
paths:
|
||||
- "scripts/**"
|
||||
- "Makefile"
|
||||
|
||||
jobs:
|
||||
run-script:
|
||||
name: Run Bash Script
|
||||
strategy:
|
||||
matrix:
|
||||
# Fedora is not an option yet
|
||||
os: [ubuntu-latest, ubuntu-22.04]
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Podman on Ubuntu
|
||||
if: contains(matrix.os, 'ubuntu')
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y podman
|
||||
|
||||
# Currently we do not do MacOSX as it is not free, maybe in the future
|
||||
# - name: Install Podman on macOS
|
||||
# if: contains(matrix.os, 'macos')
|
||||
# run: |
|
||||
# brew install podman
|
||||
# podman machine init
|
||||
# podman machine start
|
||||
|
||||
- name: Verify Podman Installation
|
||||
run: podman --version
|
||||
|
||||
- name: Run pattern.sh script
|
||||
run: |
|
||||
export TARGET_BRANCH=main
|
||||
./scripts/pattern-util.sh make validate-origin
|
||||
44
tmp/acm-hub-bootstrap/common/.github/workflows/superlinter.yml
vendored
Normal file
44
tmp/acm-hub-bootstrap/common/.github/workflows/superlinter.yml
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
---
|
||||
name: Super linter
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
# Name the Job
|
||||
name: Super linter
|
||||
# Set the agent to run on
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
# Full git history is needed to get a proper list of changed files within `super-linter`
|
||||
fetch-depth: 0
|
||||
|
||||
################################
|
||||
# Run Linter against code base #
|
||||
################################
|
||||
- name: Lint Code Base
|
||||
uses: super-linter/super-linter/slim@v7
|
||||
env:
|
||||
VALIDATE_ALL_CODEBASE: true
|
||||
DEFAULT_BRANCH: main
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# These are the validation we disable atm
|
||||
VALIDATE_ANSIBLE: false
|
||||
VALIDATE_BASH: false
|
||||
VALIDATE_CHECKOV: false
|
||||
VALIDATE_JSCPD: false
|
||||
VALIDATE_JSON_PRETTIER: false
|
||||
VALIDATE_MARKDOWN_PRETTIER: false
|
||||
VALIDATE_KUBERNETES_KUBECONFORM: false
|
||||
VALIDATE_PYTHON_PYLINT: false
|
||||
VALIDATE_SHELL_SHFMT: false
|
||||
VALIDATE_YAML: false
|
||||
VALIDATE_YAML_PRETTIER: false
|
||||
# VALIDATE_DOCKERFILE_HADOLINT: false
|
||||
# VALIDATE_MARKDOWN: false
|
||||
# VALIDATE_NATURAL_LANGUAGE: false
|
||||
# VALIDATE_TEKTON: false
|
||||
Reference in New Issue
Block a user