Skip to content

Commit

Permalink
Improve automated tests (#7)
Browse files Browse the repository at this point in the history
* Update ci workflow
* Remove outdated systems
* Run barman spec per supported OS
  • Loading branch information
deric committed Aug 18, 2023
1 parent 310961b commit 928e650
Show file tree
Hide file tree
Showing 3 changed files with 186 additions and 168 deletions.
27 changes: 22 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,26 @@ env:
BUNDLE_WITHOUT: release

jobs:
rubocop:
env:
BUNDLE_WITHOUT: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.1"
bundler-cache: true
- name: Run Rubocop
run: bundle exec rake rubocop
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- "3.1"
- "3.0"
- "2.7"
puppet:
Expand All @@ -35,8 +49,11 @@ jobs:
bundler-cache: true
- name: Run tests
run: bundle exec rake spec
- name: Rubocop
run: bundle exec rake rubocop
#- name: Lint
# run: bundle exec rake lint

tests:
needs:
- rubocop
- test
runs-on: ubuntu-latest
name: Test suite
steps:
- run: echo Test suite completed
6 changes: 2 additions & 4 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,14 @@
{
"operatingsystem": "Debian",
"operatingsystemrelease": [
"8",
"9",
"10",
"11"
"11",
"12"
]
},
{
"operatingsystem": "Ubuntu",
"operatingsystemrelease": [
"18.04",
"20.04",
"22.04"
]
Expand Down

0 comments on commit 928e650

Please sign in to comment.