Skip to content

Commit 4cd4e76

Browse files
committed
(maint) - add nightly & ci.yml
1 parent 273d4b0 commit 4cd4e76

File tree

2 files changed

+51
-34
lines changed

2 files changed

+51
-34
lines changed

.github/workflows/ci.yml

+21-34
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,31 @@
1-
name: CI for Puppetfile Resolver
1+
name: "ci"
22

33
on:
4-
push:
5-
branches:
6-
- main
74
pull_request:
85
branches:
9-
- main
6+
- "main"
7+
workflow_dispatch:
108

119
jobs:
12-
build:
13-
name: CI Tasks
10+
spec:
1411
strategy:
1512
fail-fast: false
1613
matrix:
17-
ruby: [2.7]
18-
check: [rspec]
19-
os: [ubuntu-latest, windows-latest]
14+
ruby_version:
15+
- '2.7'
16+
- '3.2'
2017
include:
21-
# Run linting
22-
- ruby: 2.7
23-
os: ubuntu-latest
24-
check: rubocop
25-
# Test on the oldest ruby we support
26-
- ruby: 2.5
27-
os: ubuntu-latest
28-
check: rspec
29-
runs-on: ${{ matrix.os }}
30-
steps:
31-
- uses: actions/checkout@v2
32-
- uses: ruby/setup-ruby@v1
33-
with:
34-
ruby-version: ${{ matrix.ruby }}
35-
bundler-cache: true
36-
- name: Output Ruby Information
37-
run: |
38-
echo "Ruby version"
39-
ruby --version
40-
echo "gem version"
41-
gem --version
42-
echo "bundler version"
43-
bundle -v
44-
- run: bundle exec ${{ matrix.check }}
18+
- ruby_version: '2.7'
19+
puppet_version: '~> 7.0'
20+
- ruby_version: '3.2'
21+
puppet_version: '~> 8.0'
22+
runs-on:
23+
- ubuntu-latest
24+
- windows-latest
25+
name: "spec (ruby ${{ matrix.ruby_version }} | puppet ${{ matrix.puppet_version }} - ${{ matrix.runs-on }})"
26+
uses: "puppetlabs/cat-github-actions/.github/workflows/gem_ci.yml@main"
27+
secrets: "inherit"
28+
with:
29+
ruby_version: ${{ matrix.ruby_version }}
30+
puppet_gem_version: ${{ matrix.puppet_version }}
31+
runs_on: ${{ matrix.runs-on }}

.github/workflows/nightly.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "nightly"
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
workflow_dispatch:
7+
8+
jobs:
9+
spec:
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
ruby_version:
14+
- '2.7'
15+
- '3.2'
16+
include:
17+
- ruby_version: '2.7'
18+
puppet_version: '~> 7.0'
19+
- ruby_version: '3.2'
20+
puppet_version: '~> 8.0'
21+
runs-on:
22+
- ubuntu-latest
23+
- windows-latest
24+
name: "spec (ruby ${{ matrix.ruby_version }} | puppet ${{ matrix.puppet_version }} - ${{ matrix.runs-on }})"
25+
uses: "puppetlabs/cat-github-actions/.github/workflows/gem_ci.yml@main"
26+
secrets: "inherit"
27+
with:
28+
ruby_version: ${{ matrix.ruby_version }}
29+
puppet_gem_version: ${{ matrix.puppet_version }}
30+
runs_on: ${{ matrix.runs-on }}

0 commit comments

Comments
 (0)