This repository has been archived by the owner on Apr 2, 2024. It is now read-only.
Bump react and react-native #184
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 | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
branches-ignore: | |
- PRODUCTION | |
# more infos on possible types here : https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#pull_request | |
concurrency: | |
group: ${{ github.ref }}-${{ github.workflow }} | |
cancel-in-progress: true | |
env: | |
APPLY_FIXES: all # When active, APPLY_FIXES must also be defined as environment variable (in github/workflows/mega-linter.yml or other CI tool) | |
APPLY_FIXES_EVENT: pull_request # Decide which event triggers application of fixes in a commit or a PR (pull_request, push, all) | |
APPLY_FIXES_MODE: commit # If APPLY_FIXES is used, defines if the fixes are directly committed (commit) or posted in a PR (pull_request) | |
jobs: | |
megalinter: | |
permissions: write-all | |
if: github.event.pull_request.draft == false | |
runs-on: ubuntu-latest | |
steps: | |
# Git Checkout | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }} | |
fetch-depth: 0 | |
# MegaLinter | |
- name: MegaLinter | |
id: ml | |
# You can override MegaLinter flavor used to have faster performances | |
# More info at https://oxsecurity.github.io/megalinter/flavors/ | |
uses: oxsecurity/megalinter/flavors/javascript@v6.15.0 | |
env: | |
# All available variables are described in documentation | |
# https://oxsecurity.github.io/megalinter/configuration/ | |
# Apply linter fixes configuration | |
VALIDATE_ALL_CODEBASE: false # to change | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# Upload MegaLinter artifacts create dir | |
- name: Archive production artifacts create dir | |
if: ${{ failure() }} | |
run: mkdir -p megalinter-reports/linters_logs/ | |
# Upload MegaLinter artifacts | |
- name: Archive production artifacts | |
if: ${{ failure() }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: MegaLinter reports | |
path: megalinter-reports/linters_logs/ |