-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1192 from puppetlabs/CONT-380-update_ci
(CONT-380) Refresh CI
- Loading branch information
Showing
6 changed files
with
64 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: "ci" | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" | ||
pull_request: | ||
branches: | ||
- "main" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
spec: | ||
name: "spec" | ||
runs-on: "ubuntu-20.04" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby_version: ['2.5', '2.7'] | ||
|
||
steps: | ||
|
||
- name: "checkout" | ||
uses: "actions/checkout@v3" | ||
|
||
- name: "setup ruby" | ||
uses: "ruby/setup-ruby@v1" | ||
with: | ||
ruby-version: ${{ matrix.ruby_version }} | ||
bundler-cache: true | ||
env: | ||
BUNDLE_WITH: "test" | ||
|
||
- name: "bundle environment" | ||
run: | | ||
echo ::group::bundler environment | ||
bundle env | ||
echo ::endgroup:: | ||
- name: "license check" | ||
run: bundle exec rake license_finder | ||
|
||
- name: "rubocop" | ||
run: | | ||
bundle exec rubocop | ||
- name: "spec" | ||
run: | | ||
bundle exec rake spec |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters