diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..e980fd64 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,24 @@ +name: Chef Test +on: [pull_request] +jobs: + test: + strategy: + fail-fast: false + matrix: + ruby: [2.4,2.5] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + + - name: Build and test with Rake + run: | + gem install bundler + bundle install --jobs 4 --retry 3 + bundle exec rake + env: + BUNDLE_GEMFILE: $PWD/Gemfile +# bundle exec codeclimate-test-reporter