From 9b13eb62d34a823c38a94a1836f58180a8305314 Mon Sep 17 00:00:00 2001 From: Kiril Videlov Date: Sun, 7 Jul 2024 13:38:33 +0200 Subject: [PATCH] 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 --- .github/workflows/push.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index 5b7a466b0..0286e84c5 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -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