Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Sep 7, 2022
1 parent 7f54c8f commit 96bed24
Show file tree
Hide file tree
Showing 95 changed files with 3 additions and 12,349 deletions.
103 changes: 0 additions & 103 deletions .github/workflows/ci-ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,39 +49,6 @@ jobs:
with:
command: build //rb:${{ matrix.target }}

chrome-test:
if: ${{ needs.check_workflow.outputs.result == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || contains(toJson(github.event.commits), '[run ruby]') == true }}
needs: check_workflow
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target: [ 'chrome-test', 'remote-chrome-test' ]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 11
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- 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
- uses: ./.github/actions/setup-chrome
- run: Xvfb :99 &
- uses: ./.github/actions/bazel
with:
command: test --test_output=all //rb:${{ matrix.target }}
env:
DISPLAY: :99

firefox-test:
if: ${{ needs.check_workflow.outputs.result == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || contains(toJson(github.event.commits), '[run ruby]') == true }}
needs: check_workflow
Expand Down Expand Up @@ -117,73 +84,3 @@ jobs:
command: test --test_output=all //rb:${{ matrix.target }}
env:
DISPLAY: :99

docs:
if: ${{ needs.check_workflow.outputs.result == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || contains(toJson(github.event.commits), '[run ruby]') == true }}
needs: check_workflow
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- 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
with:
command: run //rb:docs

lint:
if: ${{ needs.check_workflow.outputs.result == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || contains(toJson(github.event.commits), '[run ruby]') == true }}
needs: check_workflow
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- 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
with:
command: run //rb:lint

unit-test:
if: ${{ needs.check_workflow.outputs.result == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || contains(toJson(github.event.commits), '[run ruby]') == true }}
needs: check_workflow
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: [ '2.7', '3.1' ]
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- 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
with:
command: test --test_output=all //rb:unit-test

0 comments on commit 96bed24

Please sign in to comment.