summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2021-04-14 20:42:20 -0700
committerTim Smith <tsmith84@gmail.com>2021-04-21 18:47:47 -0700
commit5b629bfaf014c9f1d3e16e724a42293626893da6 (patch)
tree8781765274239e6b02d4ca7cac803c277cd0c2a8
parent4a4839ff6a559d974fa142931e43045ec86777bf (diff)
downloadchef-unit.tar.gz
Add macos unit testing with GitHub actionsunit
Free! Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--.github/workflows/unit_specs.yml26
1 files changed, 26 insertions, 0 deletions
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