This commit is contained in:
Alexis Métaireau 2024-12-17 17:59:36 +01:00 committed by GitHub
commit ab88027fa2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 51 additions and 15 deletions

View file

@ -29,7 +29,7 @@ env:
jobs: jobs:
build-dev-environment: build-dev-environment:
name: "Build dev-env (${{ matrix.distro }}-${{ matrix.version }})" name: "Build dev-env (${{ matrix.distro }}-${{ matrix.version }})"
runs-on: ubuntu-latest runs-on: ubuntu-24
strategy: strategy:
matrix: matrix:
include: include:

23
.github/workflows/check_push.yml vendored Normal file
View file

@ -0,0 +1,23 @@
name: Check branch conformity
on:
pull_request:
push:
branches:
- main
- "test/**"
jobs:
prevent-fixup-commits:
runs-on: ubuntu-24
env:
target: debian-bookworm
distro: debian
version: bookworm
steps:
- name: Checkout
uses: actions/checkout@v4
- name: prevent fixup commits
run: |
git fetch origin
git status
git log --pretty=format:%s origin/main..HEAD | grep -ie '^fixup\|^wip' && exit 1 || true

View file

@ -10,11 +10,15 @@ on:
schedule: schedule:
- cron: '0 0 * * *' # Run every day at 00:00 UTC. - cron: '0 0 * * *' # Run every day at 00:00 UTC.
workflow_dispatch: workflow_dispatch:
push:
branches:
- main
- "test/**"
jobs: jobs:
install-from-apt-repo: install-from-apt-repo:
name: "Install Dangerzone on ${{ matrix.distro}} ${{ matrix.version }}" name: "Install Dangerzone on ${{ matrix.distro}} ${{ matrix.version }}"
runs-on: ubuntu-latest runs-on: ubuntu-24
container: ${{ matrix.distro }}:${{ matrix.version }} container: ${{ matrix.distro }}:${{ matrix.version }}
strategy: strategy:
matrix: matrix:
@ -70,7 +74,7 @@ jobs:
install-from-yum-repo: install-from-yum-repo:
name: "Install Dangerzone on ${{ matrix.distro}} ${{ matrix.version }}" name: "Install Dangerzone on ${{ matrix.distro}} ${{ matrix.version }}"
runs-on: ubuntu-latest runs-on: ubuntu-24
container: ${{ matrix.distro }}:${{ matrix.version }} container: ${{ matrix.distro }}:${{ matrix.version }}
strategy: strategy:
matrix: matrix:

View file

@ -27,7 +27,7 @@ concurrency:
jobs: jobs:
run-lint: run-lint:
runs-on: ubuntu-latest runs-on: ubuntu-24
container: container:
image: debian:bookworm image: debian:bookworm
steps: steps:
@ -78,7 +78,7 @@ jobs:
download-tessdata: download-tessdata:
name: Download and cache Tesseract data name: Download and cache Tesseract data
runs-on: ubuntu-latest runs-on: ubuntu-24
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Cache Tessdata - name: Cache Tessdata
@ -183,7 +183,7 @@ jobs:
needs: needs:
- build-container-image - build-container-image
name: "build-deb (${{ matrix.distro }} ${{ matrix.version }})" name: "build-deb (${{ matrix.distro }} ${{ matrix.version }})"
runs-on: ubuntu-latest runs-on: ubuntu-24
strategy: strategy:
matrix: matrix:
include: include:
@ -250,7 +250,7 @@ jobs:
install-deb: install-deb:
name: "install-deb (${{ matrix.distro }} ${{ matrix.version }})" name: "install-deb (${{ matrix.distro }} ${{ matrix.version }})"
runs-on: ubuntu-latest runs-on: ubuntu-24
needs: needs:
- build-deb - build-deb
strategy: strategy:
@ -305,7 +305,7 @@ jobs:
build-install-rpm: build-install-rpm:
name: "build-install-rpm (${{ matrix.distro }} ${{matrix.version}})" name: "build-install-rpm (${{ matrix.distro }} ${{matrix.version}})"
runs-on: ubuntu-latest runs-on: ubuntu-24
needs: needs:
- build-container-image - build-container-image
strategy: strategy:
@ -377,7 +377,7 @@ jobs:
run-tests: run-tests:
name: "run tests (${{ matrix.distro }} ${{ matrix.version }})" name: "run tests (${{ matrix.distro }} ${{ matrix.version }})"
runs-on: ubuntu-latest runs-on: ubuntu-24
needs: needs:
- build-container-image - build-container-image
- download-tessdata - download-tessdata

View file

@ -2,10 +2,14 @@ name: Close inactive issues
on: on:
schedule: schedule:
- cron: "30 1 * * *" - cron: "30 1 * * *"
push:
branches:
- main
- "test/**"
jobs: jobs:
close-issues: close-issues:
runs-on: ubuntu-latest runs-on: ubuntu-24
permissions: permissions:
issues: write issues: write
steps: steps:

View file

@ -3,6 +3,7 @@ on:
push: push:
branches: branches:
- main - main
- "test/**"
pull_request: pull_request:
schedule: schedule:
- cron: '0 0 * * *' # Run every day at 00:00 UTC. - cron: '0 0 * * *' # Run every day at 00:00 UTC.
@ -10,7 +11,7 @@ on:
jobs: jobs:
security-scan-container: security-scan-container:
runs-on: ubuntu-latest runs-on: ubuntu-24
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -51,7 +52,7 @@ jobs:
severity-cutoff: critical severity-cutoff: critical
security-scan-app: security-scan-app:
runs-on: ubuntu-latest runs-on: ubuntu-24
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4

View file

@ -1,5 +1,9 @@
name: Scan released app and container name: Scan released app and container
on: on:
push:
branches:
- main
- "test/**"
schedule: schedule:
- cron: '0 0 * * *' # Run every day at 00:00 UTC. - cron: '0 0 * * *' # Run every day at 00:00 UTC.
workflow_dispatch: workflow_dispatch:
@ -9,7 +13,7 @@ jobs:
strategy: strategy:
matrix: matrix:
include: include:
- runs-on: ubuntu-latest - runs-on: ubuntu-24
arch: i686 arch: i686
# Do not scan Silicon mac for now to avoid masking release scan results for other plaforms. # Do not scan Silicon mac for now to avoid masking release scan results for other plaforms.
# - runs-on: macos-latest # - runs-on: macos-latest
@ -55,7 +59,7 @@ jobs:
severity-cutoff: critical severity-cutoff: critical
security-scan-app: security-scan-app:
runs-on: ubuntu-latest runs-on: ubuntu-24
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4