From 24c817b027e32e46844fe2daaeb4306979e3c3b7 Mon Sep 17 00:00:00 2001 From: Ryan Davis Date: Tue, 17 May 2022 14:40:52 -0800 Subject: Added GHA CI setup for better or worse... [git-p4: depot-paths = "//src/hoe/dev/": change = 13383] --- .github/workflows/ci.yml | 71 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 .github/workflows/ci.yml (limited to '.github') 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 -- cgit v1.2.1