From 3681c17aa2a0a3931f823bc5878572e0fa8ca683 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 13 Feb 2021 02:02:33 -0500 Subject: [PATCH] tests: fix lint issues in yaml files --- .circleci/config.yml | 1 + .codacy.yml | 9 +++-- .github/workflows/bump-formula.yml | 4 +- .github/workflows/codeql-analysis.yml | 56 +++++++++++++-------------- 4 files changed, 36 insertions(+), 34 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8eb926125..967c2fb8e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,3 +1,4 @@ +--- version: 2.1 jobs: diff --git a/.codacy.yml b/.codacy.yml index 8f6841491..47af1b0d4 100644 --- a/.codacy.yml +++ b/.codacy.yml @@ -1,5 +1,6 @@ +--- exclude_paths: -- vendor/**/* -- tests/**/* -- "**_test.go" -- contrib/* + - vendor/**/* + - tests/**/* + - "**_test.go" + - contrib/* diff --git a/.github/workflows/bump-formula.yml b/.github/workflows/bump-formula.yml index 11cee2363..5ea0285cf 100644 --- a/.github/workflows/bump-formula.yml +++ b/.github/workflows/bump-formula.yml @@ -4,8 +4,8 @@ name: bump-formula # yamllint disable-line rule:truthy on: push: - tags: - - '*' + tags: + - '*' jobs: bump-formula: runs-on: macos-latest diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index fff2153e0..a0cdd6d1a 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -16,10 +16,10 @@ name: "CodeQL" # yamllint disable-line rule:truthy on: push: - branches: [ master ] + branches: [master] pull_request: # The branches below must be a subset of the branches above - branches: [ master ] + branches: [master] schedule: - cron: '18 22 * * 2' @@ -31,40 +31,40 @@ jobs: strategy: fail-fast: false matrix: - language: [ 'go' ] + language: ['go'] # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] # Learn more: # https://docs.github.com/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed steps: - - name: Checkout repository - uses: actions/checkout@v2 + - name: Checkout repository + uses: actions/checkout@v2 - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v1 - with: - languages: ${{ matrix.language }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - # queries: ./path/to/local/query, your-org/your-repo/queries@main + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v1 + with: + languages: ${{ matrix.language }} + # If you wish to specify custom queries, you can do so here or in a config file. + # By default, queries listed here will override any specified in a config file. + # Prefix the list here with "+" to use these queries and those in the config file. + # queries: ./path/to/local/query, your-org/your-repo/queries@main - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v1 + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). + # If this step fails, then you should remove it and run the build manually (see below) + - name: Autobuild + uses: github/codeql-action/autobuild@v1 - # â„šī¸ Command-line programs to run using the OS shell. - # 📚 https://git.io/JvXDl + # â„šī¸ Command-line programs to run using the OS shell. + # 📚 https://git.io/JvXDl - # âœī¸ If the Autobuild fails above, remove it and uncomment the following three lines - # and modify them (or add more) to build your code if your project - # uses a compiled language + # âœī¸ If the Autobuild fails above, remove it and uncomment the following three lines + # and modify them (or add more) to build your code if your project + # uses a compiled language - #- run: | - # make bootstrap - # make release + # - run: | + # make bootstrap + # make release - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v1