|
| 1 | +name: CI - Renovate - RBE |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - renovate/* |
| 7 | + workflow_dispatch: |
| 8 | + |
| 9 | +jobs: |
| 10 | + format: |
| 11 | + runs-on: ubuntu-latest |
| 12 | + if: github.repository_owner == 'seleniumhq' |
| 13 | + steps: |
| 14 | + - name: Checkout Repository |
| 15 | + uses: actions/checkout@v4 |
| 16 | + - name: java - repin dependencies |
| 17 | + if: contains(join(github.event.commits.*.message), '[java]') |
| 18 | + run: REPIN=1 bazel run @maven//:pin |
| 19 | + - name: rust - repin dependencies |
| 20 | + if: contains(join(github.event.commits.*.message), '[rust]') |
| 21 | + run: CARGO_BAZEL_REPIN=true bazel sync --only=crates |
| 22 | + - name: js - repin dependencies |
| 23 | + if: contains(join(github.event.commits.*.message), '[js]') |
| 24 | + run: bazel run -- @pnpm//:pnpm install --dir $PWD --lockfile-only |
| 25 | + - name: dotnet - repin dependencies |
| 26 | + if: contains(join(github.event.commits.*.message), '[dotnet]') |
| 27 | + run: ./dotnet/update-deps.sh |
| 28 | + - name: py - repin dependencies |
| 29 | + if: contains(join(github.event.commits.*.message), '[py]') |
| 30 | + run: bazel run //py:requirements.update |
| 31 | + - name: Commit files |
| 32 | + run: | |
| 33 | + export CHANGES=$(git status -s) |
| 34 | + if [ -n "$CHANGES" ]; then |
| 35 | + git config --local user.email "[email protected]" |
| 36 | + git config --local user.name "Selenium CI Bot" |
| 37 | + git add . |
| 38 | + git commit -m 'Repin dependencies' |
| 39 | + git push |
| 40 | + fi |
| 41 | +
|
| 42 | + check-format: |
| 43 | + needs: format |
| 44 | + name: Check format |
| 45 | + if: github.repository_owner == 'seleniumhq' |
| 46 | + uses: ./.github/workflows/bazel.yml |
| 47 | + with: |
| 48 | + name: Check format script run |
| 49 | + caching: false |
| 50 | + ruby-version: jruby-9.4.8.0 |
| 51 | + run: ./scripts/github-actions/check-format.sh |
| 52 | + |
| 53 | + test: |
| 54 | + name: Test |
| 55 | + if: github.repository_owner == 'seleniumhq' |
| 56 | + uses: ./.github/workflows/bazel.yml |
| 57 | + with: |
| 58 | + name: All RBE tests |
| 59 | + caching: false |
| 60 | + ruby-version: jruby-9.4.8.0 |
| 61 | + run: ./scripts/github-actions/ci-build.sh |
0 commit comments