nightly #4
This file contains hidden or 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
| 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
|
||
| 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 | ||