summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2021-04-22 16:06:10 -0700
committerGitHub <noreply@github.com>2021-04-22 16:06:10 -0700
commit348a6878e4f3f2ae242aee01e95df5dad66aacaa (patch)
tree9005870ddf2fee55b50848fa976af3bbaeef40f5
parent35acb9504700d403b9a3c826240d37f9f5204db0 (diff)
parentdd067f33c324fb0c4b0202e547970ce6da144fe2 (diff)
downloadchef-348a6878e4f3f2ae242aee01e95df5dad66aacaa.tar.gz
Merge pull request #11422 from chef/unit
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..fd0be0991f
--- /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 is not public for now
+ # 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