adding feature to edit goals, code will be refactored in the followin… #261
Workflow file for this run
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
# MegaLinter GitHub Action configuration file | |
# More info at https://megalinter.io | |
--- | |
name: MegaLinter | |
# Trigger mega-linter at every push. Action will also be visible from Pull | |
# Requests to main | |
on: | |
# Comment this line to trigger action only on pull-requests | |
# (not recommended if you don't pay for GH Actions) | |
push: | |
# Comment env block if you do not want to apply fixes | |
env: | |
# To get Megalinter working it needs x86, so we use quemu for arm64 host | |
# sudo apt-get install qemu-user-static | |
# sudo update-binfmts --enable qemu-x86_64 | |
# then set default platform | |
DOCKER_DEFAULT_PLATFORM: linux/amd64 | |
# Apply linter fixes configuration | |
# | |
# When active, APPLY_FIXES must also be defined as environment variable | |
# (in github/workflows/mega-linter.yml or other CI tool) | |
APPLY_FIXES: all | |
# APPLY_FIXES_EVENT: all # Decide which event triggers application of fixes in a commit or a PR (pull_request, push, all) | |
# APPLY_FIXES_MODE: pull_request # If APPLY_FIXES is used, defines if the fixes are directly committed (commit) or posted in a PR (pull_request) | |
# ENABLE_LINTERS: # If you use ENABLE_LINTERS variable, all other linters will be disabled by default | |
ENABLE_LINTERS: JSX_ESLINT,JAVASCRIPT_STANDARD,JAVASCRIPT_PRETTIER,MARKDOWN_MARKDOWNLINT,YAML_YAMLLINT,YAML_PRETTIER | |
concurrency: | |
group: ${{ github.ref }}-${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
megalinter: | |
name: MegaLinter | |
runs-on: self-hosted | |
# Give the default GITHUB_TOKEN write permission to commit and push, comment | |
# issues & post new PR; remove the ones you do not need | |
permissions: | |
contents: write | |
issues: write | |
pull-requests: write | |
steps: | |
# Set workdir perms | |
- name: Set Permissions | |
run: sudo chown -R $USER:$USER ~/actions-runner/_work/ | |
# Git Checkout | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }} | |
# If you use VALIDATE_ALL_CODEBASE = true, you can remove this line to | |
# improve performance | |
# fetch-depth: 0 | |
# MegaLinter | |
- name: MegaLinter | |
# You can override MegaLinter flavor used to have faster performances | |
# More info at https://megalinter.io/flavors/ | |
uses: oxsecurity/megalinter@v7.8.0 | |
id: ml | |
# All available variables are described in documentation | |
# https://megalinter.io/configuration/ | |
env: | |
# Validates all source when push on main, else just the git diff with | |
# main. Override with true if you always want to lint all sources | |
# | |
# To validate the entire codebase, set to: | |
VALIDATE_ALL_CODEBASE: true | |
# | |
# To validate only diff with main, set to: | |
# VALIDATE_ALL_CODEBASE: >- | |
# ${{ | |
# github.event_name == 'push' && | |
# contains(fromJSON('["refs/heads/main", "refs/heads/master"]'), github.ref) | |
# }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# ADD YOUR CUSTOM ENV VARIABLES HERE OR DEFINE THEM IN A FILE | |
# .mega-linter.yml AT THE ROOT OF YOUR REPOSITORY | |
JSX_ESLINT_RULES_PATH: client/src/ | |
JSX_ESLINT_CONFIG_FILE: .eslintrc.cjs | |
JSX_ESLINT_ARGUMENTS: --max-warnings=0 | |
# Uncomment to disable copy-paste and spell checks | |
# DISABLE: COPYPASTE,SPELL | |
# Upload MegaLinter artifacts | |
- name: Archive production artifacts | |
uses: actions/upload-artifact@v3 | |
if: ${{ success() }} || ${{ failure() }} | |
with: | |
name: MegaLinter reports | |
path: | | |
megalinter-reports | |
mega-linter.log |