Skip to content

Commit

Permalink
Merge pull request #9 from FalloutFalcon/ci-suite
Browse files Browse the repository at this point in the history
Ci suite
  • Loading branch information
FalloutFalcon authored Oct 8, 2024
2 parents 8e70256 + a87973b commit cb7c4ab
Showing 1 changed file with 40 additions and 7 deletions.
47 changes: 40 additions & 7 deletions .github/workflows/ci_suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,36 @@ name: Checks
on:
push:
branches:
- master
- master
- 'project/**'
- 'gh-readonly-queue/master/**'
- 'gh-readonly-queue/project/**'
pull_request:
branches:
- master
- master
- 'project/**'
merge_group:
branches:
- master
- master

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
start_gate:
if: ( !contains(github.event.head_commit.message, '[ci skip]') )
name: Start Gate
runs-on: ubuntu-latest
steps:
- name: Mandatory Empty Step
run: exit 0

run_linters:
if: ${{ ! contains(github.event.head_commit.message, '[ci skip]') }}
name: Run Linters
needs: start_gate
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -84,9 +102,11 @@ jobs:
cat check_regex_output.txt
compile_all_maps:
if: ${{ ! contains(github.event.head_commit.message, '[ci skip]') }}
name: Compile Maps
needs: start_gate
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- uses: actions/checkout@v3

Expand All @@ -106,8 +126,9 @@ jobs:
tools/build/build --ci dm -DCIBUILDING -DCITESTING -DALL_MAPS -DFULL_INIT
run_all_tests:
if: ${{ ! contains(github.event.head_commit.message, '[ci skip]') }}
name: Integration Tests
needs: start_gate
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -136,8 +157,8 @@ jobs:
# minor: ${{ matrix.minor }}

test_windows:
if: ${{ ! contains(github.event.head_commit.message, '[ci skip]') }}
name: Windows Build
needs: start_gate
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -167,3 +188,15 @@ jobs:
with:
name: deploy
path: deploy


completion_gate: # Serves as a non-moving target for branch rulesets
if: always() && !cancelled()
name: Completion Gate
needs: [ test_windows, compile_all_maps, run_linters, run_all_tests]
runs-on: ubuntu-latest
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}

0 comments on commit cb7c4ab

Please sign in to comment.