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