Skip to content

nightly

nightly #4

Workflow file for this run

name: "nightly"
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
spec:
strategy:
fail-fast: false
matrix:
ruby_version:
- "3.2"
- "4.0"
include:
- ruby_version: "3.2"
puppet_gem_version: "~> 8.0"
- ruby_version: "4.0"
puppet_gem_version: "~> 9.0"
runs_on:
- "ubuntu-latest"
- "macos-latest"
- "ubuntu-24.04-arm"
# See ci.yml's spec-windows job for why windows-latest isn't in this matrix.
name: "spec (${{ matrix.runs_on }} ruby ${{ matrix.ruby_version }} | puppet ${{ matrix.puppet_gem_version }})"
uses: "puppetlabs/cat-github-actions/.github/workflows/gem_ci.yml@main"

Check warning on line 27 in .github/workflows/nightly.yml

View workflow run for this annotation

GitHub Actions / nightly

Workflow syntax warning

In .github/workflows/nightly.yml (Line: 27, Col: 11): Error from called workflow puppetlabs/cat-github-actions/.github/workflows/gem_ci.yml@main (Line: 54, Col: 13): Conditional expression contains literal text outside replacement tokens. This will cause the expression to always evaluate to truthy. Did you mean to put the entire expression inside ${{ }}?
secrets: "inherit"
with:
rake_task: "spec"
ruby_version: ${{ matrix.ruby_version }}
puppet_gem_version: ${{ matrix.puppet_gem_version }}
runs_on: ${{ matrix.runs_on }}
spec-windows:
strategy:
fail-fast: false
matrix:
ruby_version:
- "3.2"
- "4.0"
include:
- ruby_version: "3.2"
puppet_gem_version: "~> 8.0"
- ruby_version: "4.0"
puppet_gem_version: "~> 9.0"
name: "spec (windows-latest ruby ${{ matrix.ruby_version }} | puppet ${{ matrix.puppet_gem_version }})"
runs-on: "windows-latest"
env:
PUPPET_GEM_VERSION: ${{ matrix.puppet_gem_version }}
PUPPET_FORGE_TOKEN: ${{ secrets.PUPPET_FORGE_TOKEN || secrets.PUPPET_FORGE_TOKEN_PUBLIC }}
BUNDLE_RUBYGEMS___PUPPETCORE__PUPPET__COM: "forge-key:${{ secrets.PUPPET_FORGE_TOKEN || secrets.PUPPET_FORGE_TOKEN_PUBLIC }}"
steps:
- uses: "actions/checkout@v4"
- uses: "ruby/setup-ruby@v1"
with:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true
- name: "Enable Windows long paths"
run: |
Set-ItemProperty 'HKLM:\System\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -value 1
git config --global core.longpaths true
- name: "rubocop"
run: bundle exec rubocop --format github
- name: "spec"
run: bundle exec rake spec