add CI for gitbutler-branc

This is getting out of hand - we need a better way of setting up the CI for a the crates we wanna have
This commit is contained in:
Kiril Videlov 2024-07-07 13:38:33 +02:00
parent 7d078de52f
commit 9b13eb62d3
No known key found for this signature in database
GPG Key ID: A4C733025427C471

View File

@ -19,6 +19,7 @@ jobs:
gitbutler-git: ${{ steps.filter.outputs.gitbutler-git }}
gitbutler-cli: ${{ steps.filter.outputs.gitbutler-cli }}
gitbutler-watcher: ${{ steps.filter.outputs.gitbutler-watcher }}
gitbutler-branch: ${{ steps.filter.outputs.gitbutler-branch }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
@ -55,6 +56,9 @@ jobs:
gitbutler-watcher:
- *rust
- 'crates/gitbutler-watcher/**'
gitbutler-branch:
- *rust
- 'crates/gitbutler-branch/**'
lint-node:
needs: changes
@ -182,6 +186,30 @@ jobs:
features: ${{ toJson(matrix.features) }}
action: ${{ matrix.action }}
check-gitbutler-branch:
needs: changes
if: ${{ needs.changes.outputs.gitbutler-branch == 'true' }}
runs-on: ubuntu-latest
container:
image: ghcr.io/gitbutlerapp/ci-base-image:latest
strategy:
matrix:
action:
- test
- check
features:
- ''
- '*'
- []
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/init-env-rust
- uses: ./.github/actions/check-crate
with:
crate: gitbutler-branch
features: ${{ toJson(matrix.features) }}
action: ${{ matrix.action }}
check-gitbutler-cli:
needs: changes
if: ${{ needs.changes.outputs.gitbutler-cli == 'true' }}
@ -238,6 +266,7 @@ jobs:
- changes
- check-gitbutler-tauri
- check-gitbutler-core
- check-gitbutler-branch
- check-gitbutler-git
- check-gitbutler-cli
- check-gitbutler-watcher