From 496ae194041744ebb54780037dab5e4edf3946ac Mon Sep 17 00:00:00 2001 From: olav Date: Thu, 25 Aug 2022 12:42:00 +0200 Subject: [PATCH] refactor: test workflows in PR --- .github/workflows/build.yaml | 16 ++++++++++------ .github/workflows/build_coverage.yaml | 27 ++++++++++++++++----------- .github/workflows/codeql-analysis.yml | 22 +++++++++++++--------- 3 files changed, 39 insertions(+), 26 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 709c4328cd..7c3f4b101a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,12 +1,16 @@ name: Build & Tests +# TODO(olav): Revert test conditions. +#on: +# push: +# branches: +# - main +# paths-ignore: +# - website/** +# - coverage/** + on: - push: - branches: - - main - paths-ignore: - - website/** - - coverage/** + pull_request: jobs: build: diff --git a/.github/workflows/build_coverage.yaml b/.github/workflows/build_coverage.yaml index 90d2066ee6..d8fb5aacdf 100644 --- a/.github/workflows/build_coverage.yaml +++ b/.github/workflows/build_coverage.yaml @@ -1,13 +1,17 @@ name: Coverage +# TODO(olav): Revert test conditions. +#on: +# push: +# branches: +# - main +# paths-ignore: +# - website/** +# - frontend/** +# - coverage/** + on: - push: - branches: - - main - paths-ignore: - - website/** - - frontend/** - - coverage/** + pull_request: jobs: coverage: @@ -57,7 +61,8 @@ jobs: # GH_NAME: 'ivarconr' # GH_EMAIL: 'ivarconr@gmail.com' # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Coveralls - uses: coverallsapp/github-action@master - with: - github-token: ${{ secrets.GITHUB_TOKEN }} +# TODO(olav): Revert test conditions. +# - name: Coveralls +# uses: coverallsapp/github-action@master +# with: +# github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index c5e417d058..79630a4b2f 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -11,14 +11,18 @@ # name: "CodeQL" +# TODO(olav): Revert test conditions. +#on: +# push: +# branches: [ main ] +# pull_request: +# # The branches below must be a subset of the branches above +# branches: [ main ] +# schedule: +# - cron: '23 23 * * 2' + on: - push: - branches: [ main ] pull_request: - # The branches below must be a subset of the branches above - branches: [ main ] - schedule: - - cron: '23 23 * * 2' jobs: analyze: @@ -48,11 +52,11 @@ jobs: # 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. - + # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs # queries: security-extended,security-and-quality - + # 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 @@ -61,7 +65,7 @@ jobs: # ℹī¸ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun - # If the Autobuild fails above, remove it and uncomment the following three lines. + # If the Autobuild fails above, remove it and uncomment the following three lines. # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. # - run: |