adds a ci job for oplog crate

This commit is contained in:
Kiril Videlov 2024-07-07 20:18:40 +02:00
parent c36f67f148
commit 6d5ef6b03e
No known key found for this signature in database
GPG Key ID: A4C733025427C471

View File

@ -21,6 +21,7 @@ jobs:
gitbutler-watcher: ${{ steps.filter.outputs.gitbutler-watcher }}
gitbutler-branch: ${{ steps.filter.outputs.gitbutler-branch }}
gitbutler-sync: ${{ steps.filter.outputs.gitbutler-sync }}
gitbutler-oplog: ${{ steps.filter.outputs.gitbutler-oplog }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
@ -63,6 +64,9 @@ jobs:
gitbutler-sync:
- *rust
- 'crates/gitbutler-sync/**'
gitbutler-oplog:
- *rust
- 'crates/gitbutler-oplog/**'
lint-node:
needs: changes
@ -238,6 +242,30 @@ jobs:
features: ${{ toJson(matrix.features) }}
action: ${{ matrix.action }}
check-gitbutler-oplog:
needs: changes
if: ${{ needs.changes.outputs.gitbutler-oplog == '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-oplog
features: ${{ toJson(matrix.features) }}
action: ${{ matrix.action }}
check-gitbutler-cli:
needs: changes
if: ${{ needs.changes.outputs.gitbutler-cli == 'true' }}
@ -296,6 +324,7 @@ jobs:
- check-gitbutler-core
- check-gitbutler-branch
- check-gitbutler-sync
- check-gitbutler-oplog
- check-gitbutler-git
- check-gitbutler-cli
- check-gitbutler-watcher