-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bazelisk is pre-installed on github runners (#11173)
- Loading branch information
1 parent
8e48e08
commit d78c5e8
Showing
6 changed files
with
66 additions
and
83 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,23 +29,27 @@ jobs: | |
matrix: | ||
target: [ 'selenium-devtools', 'selenium-webdriver' ] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
- name: Checkout source tree | ||
uses: actions/checkout@v2 | ||
- name: Setup Java | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- uses: ruby/setup-ruby@v1 | ||
- name: Setup Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7 | ||
- uses: actions/cache@v2 | ||
- name: Cache Bazel artifacts | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cache/bazel-disk | ||
~/.cache/bazel-repo | ||
key: ${{ runner.os }}-bazel-ruby-build-gem-${{ matrix.target }}-${{ hashFiles('**/BUILD.bazel') }} | ||
restore-keys: | | ||
${{ runner.os }}-bazel-ruby-build-gem-${{ matrix.target }}- | ||
- uses: ./.github/actions/setup-bazelisk | ||
- uses: ./.github/actions/bazel | ||
- name: Build Gems | ||
uses: ./.github/actions/bazel | ||
with: | ||
command: build //rb:${{ matrix.target }} | ||
|
||
|
@@ -58,29 +62,35 @@ jobs: | |
matrix: | ||
target: [ 'chrome-test', 'remote-chrome-test' ] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
- name: Checkout source tree | ||
uses: actions/checkout@v2 | ||
- name: Setup Java | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- uses: ruby/setup-ruby@v1 | ||
- name: Setup Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7 | ||
- uses: actions/cache@v2 | ||
- name: Cache Bazel artifacts | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cache/bazel-disk | ||
~/.cache/bazel-repo | ||
key: ${{ runner.os }}-bazel-ruby-${{ matrix.target }}-${{ hashFiles('**/BUILD.bazel') }} | ||
restore-keys: | | ||
${{ runner.os }}-bazel-ruby-${{ matrix.target }}- | ||
- uses: ./.github/actions/setup-bazelisk | ||
- name: Setup Fluxbox | ||
run: sudo apt-get -y install fluxbox | ||
- uses: ./.github/actions/setup-chrome | ||
- run: Xvfb :99 & | ||
- name: Setup Chrome | ||
uses: browser-actions/setup-chrome@latest | ||
- name: Start XVFB | ||
run: Xvfb :99 & | ||
- name: Start Fluxbox | ||
run: fluxbox -display :99 & | ||
- uses: ./.github/actions/bazel | ||
- name: Run Chrome tests | ||
uses: ./.github/actions/bazel | ||
with: | ||
command: test --test_output=all //rb:${{ matrix.target }} | ||
attempts: 3 | ||
|
@@ -96,30 +106,38 @@ jobs: | |
matrix: | ||
target: [ 'firefox-test', 'remote-firefox-test' ] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
- name: Checkout source tree | ||
uses: actions/checkout@v2 | ||
- name: Setup Java | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- uses: ruby/setup-ruby@v1 | ||
- name: Setup Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7 | ||
- uses: actions/cache@v2 | ||
- name: Cache Bazel artifacts | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cache/bazel-disk | ||
~/.cache/bazel-repo | ||
key: ${{ runner.os }}-bazel-ruby-${{ matrix.target }}-${{ hashFiles('**/BUILD.bazel') }} | ||
restore-keys: | | ||
${{ runner.os }}-bazel-ruby-${{ matrix.target }}- | ||
- uses: ./.github/actions/setup-bazelisk | ||
- name: Setup Fluxbox | ||
run: sudo apt-get -y install fluxbox | ||
- name: Setup Firefox and GeckoDriver | ||
uses: ./.github/actions/setup-firefox | ||
- run: Xvfb :99 & | ||
- name: Setup Firefox | ||
uses: abhi1693/[email protected] | ||
with: | ||
browser: firefox | ||
version: latest | ||
- name: Start XVFB | ||
run: Xvfb :99 & | ||
- name: Start Fluxbox | ||
run: fluxbox -display :99 & | ||
- uses: ./.github/actions/bazel | ||
- name: Run Firefox tests | ||
uses: ./.github/actions/bazel | ||
with: | ||
command: test --test_output=all //rb:${{ matrix.target }} | ||
attempts: 3 | ||
|
@@ -131,20 +149,23 @@ jobs: | |
needs: check_workflow | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ruby/setup-ruby@v1 | ||
- name: Checkout source tree | ||
uses: actions/checkout@v2 | ||
- name: Setup Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7 | ||
- uses: actions/cache@v2 | ||
- name: Cache Bazel artifacts | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cache/bazel-disk | ||
~/.cache/bazel-repo | ||
key: ${{ runner.os }}-bazel-ruby-docs-${{ hashFiles('**/BUILD.bazel') }} | ||
restore-keys: | | ||
${{ runner.os }}-bazel-ruby-${{ matrix.target }}- | ||
- uses: ./.github/actions/setup-bazelisk | ||
- uses: ./.github/actions/bazel | ||
- name: Run docs tests | ||
uses: ./.github/actions/bazel | ||
with: | ||
command: run //rb:docs | ||
|
||
|
@@ -153,20 +174,23 @@ jobs: | |
needs: check_workflow | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ruby/setup-ruby@v1 | ||
- name: Checkout source tree | ||
uses: actions/checkout@v2 | ||
- name: Setup Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7 | ||
- uses: actions/cache@v2 | ||
- name: Cache Bazel artifacts | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cache/bazel-disk | ||
~/.cache/bazel-repo | ||
key: ${{ runner.os }}-bazel-ruby-lint-${{ hashFiles('**/BUILD.bazel') }} | ||
restore-keys: | | ||
${{ runner.os }}-bazel-ruby-lint- | ||
- uses: ./.github/actions/setup-bazelisk | ||
- uses: ./.github/actions/bazel | ||
- name: Run lint tests | ||
uses: ./.github/actions/bazel | ||
with: | ||
command: run //rb:lint | ||
|
||
|
@@ -179,19 +203,22 @@ jobs: | |
matrix: | ||
ruby: [ '2.7', '3.1' ] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ruby/setup-ruby@v1 | ||
- name: Checkout source tree | ||
uses: actions/checkout@v2 | ||
- name: Setup Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
- uses: actions/cache@v2 | ||
ruby-version: 2.7 | ||
- name: Cache Bazel artifacts | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cache/bazel-disk | ||
~/.cache/bazel-repo | ||
key: ${{ runner.os }}-bazel-ruby-unit-test-${{ matrix.ruby }}-${{ hashFiles('**/BUILD.bazel') }} | ||
restore-keys: | | ||
${{ runner.os }}-bazel-ruby-unit-test-${{ matrix.ruby }}- | ||
- uses: ./.github/actions/setup-bazelisk | ||
- uses: ./.github/actions/bazel | ||
- name: Run unit tests | ||
uses: ./.github/actions/bazel | ||
with: | ||
command: test --test_output=all //rb:unit-test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters