From d48eb92a9deb12c29ae547cf2048ca6df0146774 Mon Sep 17 00:00:00 2001 From: Timothy Pansino <11214426+TimPansino@users.noreply.github.com> Date: Mon, 15 Nov 2021 11:25:31 -0800 Subject: [PATCH] Schedule daily test suite runs on main (#431) * Schedule daily test suite runs on main * Linting * Update megalinter --- .github/workflows/mega-linter.yml | 21 ++++++++------------- .github/workflows/tests.yml | 2 ++ .mega-linter.yml | 2 +- 3 files changed, 11 insertions(+), 14 deletions(-) diff --git a/.github/workflows/mega-linter.yml b/.github/workflows/mega-linter.yml index 74e43d9f26..4a717c9af0 100644 --- a/.github/workflows/mega-linter.yml +++ b/.github/workflows/mega-linter.yml @@ -1,6 +1,6 @@ --- # Mega-Linter GitHub Action configuration file -# More info at https://nvuillam.github.io/mega-linter +# More info at https://megalinter.github.io name: Mega-Linter on: @@ -14,16 +14,11 @@ env: # Comment env block if you do not want to apply fixes 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: - # Cancel duplicate jobs: https://github.com/fkirc/skip-duplicate-actions#option-3-cancellation-only - cancel_duplicates: - name: Cancel duplicate jobs - runs-on: ubuntu-latest - steps: - - uses: fkirc/skip-duplicate-actions@master - with: - github_token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }} +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true +jobs: build: name: Mega-Linter runs-on: ubuntu-latest @@ -39,11 +34,11 @@ jobs: - name: Mega-Linter id: ml # You can override Mega-Linter flavor used to have faster performances - # More info at https://nvuillam.github.io/mega-linter/flavors/ - uses: nvuillam/mega-linter/flavors/python@v4 + # More info at https://megalinter.github.io/flavors/ + uses: megalinter/megalinter/flavors/python@v5 env: # All available variables are described in documentation - # https://nvuillam.github.io/mega-linter/configuration/ + # https://megalinter.github.io/configuration/ VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} # Validates all source when push on main, else just the git diff with main. Set 'true' if you always want to lint all sources GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # ADD YOUR CUSTOM ENV VARIABLES HERE TO OVERRIDE VALUES OF .mega-linter.yml AT THE ROOT OF YOUR REPOSITORY diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 990f4cd4ce..e5c4652a85 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -21,6 +21,8 @@ on: tags-ignore: - "**" pull_request: + schedule: + - cron: "0 15 * * *" jobs: tests: # Aggregate job that provides a single check for workflow success diff --git a/.mega-linter.yml b/.mega-linter.yml index 05156ad49e..b947f9f4b9 100644 --- a/.mega-linter.yml +++ b/.mega-linter.yml @@ -1,5 +1,5 @@ # Configuration file for Mega-Linter -# See all available variables at https://nvuillam.github.io/mega-linter/configuration/ and in linters documentation +# See all available variables at https://megalinter.github.io/configuration/ and in linters documentation APPLY_FIXES: none # all, none, or list of linter keys DEFAULT_BRANCH: main # Usually master or main