From 5b629bfaf014c9f1d3e16e724a42293626893da6 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Wed, 14 Apr 2021 20:42:20 -0700 Subject: Add macos unit testing with GitHub actions Free! Signed-off-by: Tim Smith --- .github/workflows/unit_specs.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/unit_specs.yml diff --git a/.github/workflows/unit_specs.yml b/.github/workflows/unit_specs.yml new file mode 100644 index 0000000000..5013a80d99 --- /dev/null +++ b/.github/workflows/unit_specs.yml @@ -0,0 +1,26 @@ +--- +name: unit_specs + +"on": + pull_request: + push: + branches: + - master + +jobs: + unit: + strategy: + fail-fast: false + matrix: + os: [macos-10.15, macos-11.0] + # Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0' + ruby: ['3.0'] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + - run: bundle exec rake spec:unit + - run: bundle exec rake component_specs -- cgit v1.2.1