From c367bb3d31ecd474bb0b73015f9009f68614d02f Mon Sep 17 00:00:00 2001 From: VenkateshRavula Date: Wed, 24 Mar 2021 14:23:51 +0530 Subject: [PATCH 1/5] added chef workflow --- .github/workflows/test.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..6a78fe79 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,23 @@ +name: Chef Test +on: [pull_request] +jobs: + test: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + ruby: [2.4,2.5] + runs-on: ${{ matrix.os }} + 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 + rake test + bundle exec codeclimate-test-reporter \ No newline at end of file From ed81c702f9f24c7afc41b3571ee8b9bcfa6faad0 Mon Sep 17 00:00:00 2001 From: VenkateshRavula Date: Wed, 24 Mar 2021 14:29:05 +0530 Subject: [PATCH 2/5] modified chef workflow --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6a78fe79..bae5714a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,5 +19,5 @@ jobs: run: | gem install bundler bundle install --jobs 4 --retry 3 - rake test + bundle exec rake test bundle exec codeclimate-test-reporter \ No newline at end of file From 9aa43caa0d5075742d5b21128e3e0cf0626e138c Mon Sep 17 00:00:00 2001 From: VenkateshRavula Date: Wed, 24 Mar 2021 17:35:00 +0530 Subject: [PATCH 3/5] change rake command --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bae5714a..8682404d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,5 +19,5 @@ jobs: run: | gem install bundler bundle install --jobs 4 --retry 3 - bundle exec rake test + bundle exec rake bundle exec codeclimate-test-reporter \ No newline at end of file From 9b4cca9fb776063ced81e7dbdd6c148a976ff57f Mon Sep 17 00:00:00 2001 From: VenkateshRavula Date: Wed, 24 Mar 2021 21:43:35 +0530 Subject: [PATCH 4/5] change rake commands --- .github/workflows/test.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8682404d..fdb399f0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,4 +20,9 @@ jobs: gem install bundler bundle install --jobs 4 --retry 3 bundle exec rake - bundle exec codeclimate-test-reporter \ No newline at end of file +# bundle exec codeclimate-test-reporter +# +#ruby --version +#gem update bundler +#bundle install --jobs=3 --retry=3 +#rake test \ No newline at end of file From d811c36638f4be04741f0c4d0a3a30c2d93b1792 Mon Sep 17 00:00:00 2001 From: VenkateshRavula Date: Mon, 5 Apr 2021 16:10:28 +0530 Subject: [PATCH 5/5] modify workflow --- .github/workflows/test.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fdb399f0..e980fd64 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,9 +5,8 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest] ruby: [2.4,2.5] - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: ruby/setup-ruby@v1 @@ -20,9 +19,6 @@ jobs: gem install bundler bundle install --jobs 4 --retry 3 bundle exec rake + env: + BUNDLE_GEMFILE: $PWD/Gemfile # bundle exec codeclimate-test-reporter -# -#ruby --version -#gem update bundler -#bundle install --jobs=3 --retry=3 -#rake test \ No newline at end of file