diff options
author | Ryan Davis <ryand-ruby@zenspider.com> | 2022-05-17 14:40:52 -0800 |
---|---|---|
committer | Ryan Davis <ryand-ruby@zenspider.com> | 2022-05-17 14:40:52 -0800 |
commit | 24c817b027e32e46844fe2daaeb4306979e3c3b7 (patch) | |
tree | aa9b38be753e11bba30571b50c2d6b3acacd65cd /.github | |
parent | fb4245cecc50f125efd14f2b44bbf49a0709da89 (diff) | |
download | hoe-24c817b027e32e46844fe2daaeb4306979e3c3b7.tar.gz |
Added GHA CI setup for better or worse...
[git-p4: depot-paths = "//src/hoe/dev/": change = 13383]
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yml | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..c6073bb --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,71 @@ +--- +name: CI + +# https://github.com/actions/virtual-environments#available-environments +# https://github.com/ruby/setup-ruby/blob/master/README.md +# https://github.com/ruby/setup-ruby/blob/master/README.md#supported-platformsg + +'on': [push, pull_request, workflow_dispatch] + +jobs: + test: + name: >- + test ${{ matrix.os }} ${{ matrix.ruby }} + + runs-on: ${{ matrix.os }} + if: | + !( contains(github.event.pull_request.title, '[ci skip]') + || contains(github.event.pull_request.title, '[skip ci]')) + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + - macos-latest + ruby: + - '2.7' + - '3.0' + - '3.1' + - head + + steps: + - name: repo checkout + uses: actions/checkout@v2 + + - name: load ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler: none + + - name: rake test + run: | + rake test + ruby -v + timeout-minutes: 3 + + isolated: + name: >- + test:isolated + + runs-on: ubuntu-latest + if: | + !( contains(github.event.pull_request.title, '[ci skip]') + || contains(github.event.pull_request.title, '[skip ci]')) + strategy: + fail-fast: false + + steps: + - name: repo checkout + uses: actions/checkout@v2 + + - name: load ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ruby + + - name: rake test:isolated + run: | + rake test:isolated + ruby -v + timeout-minutes: 3 |