1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-15 17:50:48 +02:00

refactor: test workflows in PR

This commit is contained in:
olav 2022-08-25 12:42:00 +02:00
parent 8a3c0c9052
commit 496ae19404
3 changed files with 39 additions and 26 deletions

View File

@ -1,12 +1,16 @@
name: Build & Tests name: Build & Tests
# TODO(olav): Revert test conditions.
#on:
# push:
# branches:
# - main
# paths-ignore:
# - website/**
# - coverage/**
on: on:
push: pull_request:
branches:
- main
paths-ignore:
- website/**
- coverage/**
jobs: jobs:
build: build:

View File

@ -1,13 +1,17 @@
name: Coverage name: Coverage
# TODO(olav): Revert test conditions.
#on:
# push:
# branches:
# - main
# paths-ignore:
# - website/**
# - frontend/**
# - coverage/**
on: on:
push: pull_request:
branches:
- main
paths-ignore:
- website/**
- frontend/**
- coverage/**
jobs: jobs:
coverage: coverage:
@ -57,7 +61,8 @@ jobs:
# GH_NAME: 'ivarconr' # GH_NAME: 'ivarconr'
# GH_EMAIL: 'ivarconr@gmail.com' # GH_EMAIL: 'ivarconr@gmail.com'
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Coveralls # TODO(olav): Revert test conditions.
uses: coverallsapp/github-action@master # - name: Coveralls
with: # uses: coverallsapp/github-action@master
github-token: ${{ secrets.GITHUB_TOKEN }} # with:
# github-token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -11,14 +11,18 @@
# #
name: "CodeQL" 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: on:
push:
branches: [ main ]
pull_request: pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
schedule:
- cron: '23 23 * * 2'
jobs: jobs:
analyze: analyze:
@ -48,11 +52,11 @@ jobs:
# If you wish to specify custom queries, you can do so here or in a config file. # 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. # 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. # 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 # 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 # queries: security-extended,security-and-quality
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # 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) # If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild - name: Autobuild
@ -61,7 +65,7 @@ jobs:
# Command-line programs to run using the OS shell. # 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 # 📚 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. # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
# - run: | # - run: |