Skip to content

Commit

Permalink
Added status checks for branch-protection (#20)
Browse files Browse the repository at this point in the history
🥳🥳🥳

---------

Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
  • Loading branch information
bigcat88 authored Jul 25, 2023
1 parent ed732ae commit 27f5187
Show file tree
Hide file tree
Showing 8 changed files with 126 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/docs-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
- '.github/workflows/docs-check.yml'
- 'docs/**'

permissions:
contents: read

jobs:
build_docs:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- '.github/workflows/docs.yml'
- 'docs/**'

permissions:
contents: read

jobs:
build_push_docs:
runs-on: ubuntu-latest
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/lint-unrelated.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Lint

on:
pull_request:
paths-ignore:
- 'appinfo/*.*'
- 'lib/**'
# - 'src/**'
- 'templates/*.*'

permissions:
contents: read

concurrency:
group: lint-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
lint-success:
permissions:
contents: none
runs-on: ubuntu-22.04
name: Lint-OK
steps:
- run: echo "No Lint required"
16 changes: 16 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ on:
- 'templates/*.*'
workflow_dispatch:

permissions:
contents: read

concurrency:
group: lint-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
xml-lint:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -138,3 +145,12 @@ jobs:
#
# - name: Lint
# run: npm run stylelint

lint-success:
permissions:
contents: none
runs-on: ubuntu-22.04
needs: [xml-lint, php-lint, php-cs, php-psalm-analysis, php-security-analysis]
name: Lint-OK
steps:
- run: echo "Lint passed successfully"
23 changes: 23 additions & 0 deletions .github/workflows/tests-deploy-unrelated.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Tests - Deploy

on:
pull_request:
paths-ignore:
- '.github/workflows/tests-deploy.yml'
- 'lib/**'

permissions:
contents: read

concurrency:
group: tests-deploy-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
tests-deploy-success:
permissions:
contents: none
runs-on: ubuntu-22.04
name: Tests-Deploy-OK
steps:
- run: echo "No Tests-Deploy required"
17 changes: 17 additions & 0 deletions .github/workflows/tests-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ on:
- 'lib/**'
workflow_dispatch:

permissions:
contents: read

concurrency:
group: tests-deploy-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
nc-host-app-docker:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -505,3 +512,13 @@ jobs:
name: nc_host_app_docker_redis_${{ matrix.server-version }}_${{ matrix.php-version }}_nextcloud.log
path: data/nextcloud.log
if-no-files-found: warn

tests-deploy-uccess:
permissions:
contents: none
runs-on: ubuntu-22.04
needs: [nc-host-app-docker, nc-docker-app-docker, nc-docker-app-docker-by-port,
nc-docker-app-host-by-hostname, nc-host-app-docker-redis]
name: Tests-Deploy-OK
steps:
- run: echo "Tests-Deploy passed successfully"
23 changes: 23 additions & 0 deletions .github/workflows/tests-unrelated.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Tests

on:
pull_request:
paths-ignore:
- '.github/workflows/tests.yml'
- 'lib/**'

permissions:
contents: read

concurrency:
group: tests-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
tests-success:
permissions:
contents: none
runs-on: ubuntu-22.04
name: Tests-OK
steps:
- run: echo "No Tests required"
16 changes: 16 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ on:
- 'lib/**'
workflow_dispatch:

permissions:
contents: read

concurrency:
group: tests-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
nc-py-api-pgsql:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -134,3 +141,12 @@ jobs:
name: nc_py_api_${{ matrix.server-version }}_${{ matrix.php-version }}_nextcloud.log
path: data/nextcloud.log
if-no-files-found: warn

tests-success:
permissions:
contents: none
runs-on: ubuntu-22.04
needs: [nc-py-api-pgsql]
name: Tests-OK
steps:
- run: echo "Tests passed successfully"

0 comments on commit 27f5187

Please sign in to comment.