Skip to content

Commit

Permalink
test ruby directly as running codecov within docker is messy
Browse files Browse the repository at this point in the history
  • Loading branch information
wr0ngway committed Jun 22, 2021
1 parent 54096a1 commit 986b14c
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: satackey/action-docker-layer-caching@v0.0.11
continue-on-error: true
- uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Set environment from cloudtruth
uses: cloudtruth/configure-action@v1
Expand All @@ -23,9 +27,13 @@ jobs:
project: "deploy"
environment: "production"

- name: Run the tests
run: |
rake test
- name: Install Ruby version specified in `.ruby-version`
uses: eregon/use-ruby-action@master

- run: gem install --no-document bundler
- run: bundle config path vendor/bundle
- run: bundle install --jobs 4 --retry 3
- run: bundle exec rspec

deploy:
if: startsWith(github.ref, 'refs/tags/v')
Expand Down

0 comments on commit 986b14c

Please sign in to comment.