mirror of
https://github.com/swarm-game/swarm.git
synced 2024-08-16 18:10:23 +03:00
Filter paths that run CI (#279)
* Filter paths that run CI * Add dummy CI to check
This commit is contained in:
parent
e94418e5c6
commit
95f2247657
28
.github/workflows/dummy-ci.yml
vendored
Normal file
28
.github/workflows/dummy-ci.yml
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
# RUN IN CASE Haskell-CI DOES NOT RUN
|
||||
# used for mergify check
|
||||
name: Co-Haskell-CI
|
||||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- '**.hs'
|
||||
- '**.sw'
|
||||
- '**.cabal'
|
||||
- '*.yaml'
|
||||
- 'data/**.yaml'
|
||||
- 'cabal.project*'
|
||||
# reuse the same filter for pull-requests
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- '**.hs'
|
||||
- '**.sw'
|
||||
- '**.cabal'
|
||||
- 'stack.yaml'
|
||||
- '*.yaml'
|
||||
- 'data/**.yaml'
|
||||
- 'cabal.project*'
|
||||
jobs:
|
||||
linux:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Do nothing
|
||||
run: exit 0
|
22
.github/workflows/haskell-ci.yml
vendored
22
.github/workflows/haskell-ci.yml
vendored
@ -1,3 +1,5 @@
|
||||
## Hand edited to add paths filter ;)
|
||||
#
|
||||
# This GitHub workflow config has been generated by a script via
|
||||
#
|
||||
# haskell-ci 'github' 'swarm.cabal'
|
||||
@ -14,8 +16,24 @@
|
||||
#
|
||||
name: Haskell-CI
|
||||
on:
|
||||
- push
|
||||
- pull_request
|
||||
push:
|
||||
paths:
|
||||
- '**.hs'
|
||||
- '**.sw'
|
||||
- '**.cabal'
|
||||
- '*.yaml'
|
||||
- 'data/**.yaml'
|
||||
- 'cabal.project*'
|
||||
# reuse the same filter for pull-requests
|
||||
pull_request:
|
||||
paths:
|
||||
- '**.hs'
|
||||
- '**.sw'
|
||||
- '**.cabal'
|
||||
- 'stack.yaml'
|
||||
- '*.yaml'
|
||||
- 'data/**.yaml'
|
||||
- 'cabal.project*'
|
||||
jobs:
|
||||
linux:
|
||||
# when changing the name or adding ghc version, please don't forget to update
|
||||
|
@ -6,8 +6,11 @@ pull_request_rules:
|
||||
commit_message: title+body
|
||||
name: Automatically merge pull requests
|
||||
conditions:
|
||||
- check-success=Haskell-CI - Linux - ghc-9.0.1
|
||||
- check-success=Haskell-CI - Linux - ghc-8.10.4
|
||||
- or:
|
||||
- check-success=Co-Haskell-CI
|
||||
- and:
|
||||
- check-success=Haskell-CI - Linux - ghc-9.0.1
|
||||
- check-success=Haskell-CI - Linux - ghc-8.10.4
|
||||
- label=merge me
|
||||
- ! '#approved-reviews-by>=1'
|
||||
- ! '#changes-requested-reviews-by=0'
|
||||
|
Loading…
Reference in New Issue
Block a user