build: reduce cosign to a minimum #2972
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: Lint Code Base | |
# | |
# Documentation: | |
# https://help.github.com/en/articles/workflow-syntax-for-github-actions | |
# | |
on: [push, pull_request] | |
############### | |
# Set the Job # | |
############### | |
jobs: | |
build: | |
# Name the Job | |
name: Lint Code Base | |
# Set the agent to run on | |
runs-on: ubuntu-latest | |
################## | |
# Load all steps # | |
################## | |
steps: | |
########################## | |
# Checkout the code base # | |
########################## | |
- name: Checkout Code | |
uses: actions/[email protected] | |
with: | |
# Full git history is needed to get a proper list of changed files within `super-linter` | |
fetch-depth: 0 | |
- name: Remove files which should not be linted | |
run: | | |
rm -Rf tests/N98/Util/_files/sample-project/composer | |
################################ | |
# Run Linter against code base # | |
################################ | |
- name: Lint Code Base | |
uses: super-linter/super-linter/slim@v5 | |
env: | |
VALIDATE_ALL_CODEBASE: false | |
VALIDATE_BASH: false | |
VALIDATE_JSCPD: false | |
VALIDATE_MARKDOWN: false | |
VALIDATE_NATURAL_LANGUAGE: false | |
VALIDATE_PHP_PHPCS: false | |
VALIDATE_PHP_PHPSTAN: false | |
VALIDATE_PHP_PSALM: false | |
MARKDOWN_CONFIG_FILE: '.markdown-lint.yml' | |
DEFAULT_BRANCH: 'develop' | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |