diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b7a795e7..2fcff9bd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,14 @@ jobs: run: | bundle config set without development bundle install --jobs 4 --retry 3 - - run: bundle exec rake + + - name: Rubocop + run: | + bundle exec rake rubocop + + - name: Run tests + run: | + bundle exec rake spec # Starting with version 3.2, Ruby no longer bundles libffi, which is necessary for tests on Windows. Due to a discrepancy between the C # library the Windows Puppet gem is built against and what GitHub runners use (MinGW and ucrt, respectively) we can't install the @@ -62,4 +69,11 @@ jobs: bundle config set without development ${{ matrix.cfg.extra }} bundle install --jobs 4 --retry 3 - - run: bundle exec rake + + - name: Rubocop + run: | + bundle exec rake rubocop + + - name: Run tests + run: | + bundle exec rake spec diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 1b0cd017..92c701b2 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -30,7 +30,14 @@ jobs: run: | bundle config set without development bundle install --jobs 4 --retry 3 - - run: bundle exec rake + + - name: Rubocop + run: | + bundle exec rake rubocop + + - name: Run tests + run: | + bundle exec rake spec # Starting with version 3.2, Ruby no longer bundles libffi, which is necessary for tests on Windows. Due to a discrepancy between the C # library the Windows Puppet gem is built against and what GitHub runners use (MinGW and ucrt, respectively) we can't install the @@ -60,4 +67,11 @@ jobs: bundle config set without development ${{ matrix.cfg.extra }} bundle install --jobs 4 --retry 3 - - run: bundle exec rake + + - name: Rubocop + run: | + bundle exec rake rubocop + + - name: Run tests + run: | + bundle exec rake spec