feat(puppetcore): Add puppetcore gem source switch capability #237
Workflow file for this run
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: "ci" | |
| on: | |
| pull_request: | |
| branches: | |
| - "main" | |
| workflow_dispatch: | |
| jobs: | |
| Spec: | |
| uses: "puppetlabs/cat-github-actions/.github/workflows/module_ci.yml@puppetcore" | |
| with: | |
| # This line enables shellcheck to be run on this repository | |
| run_shellcheck: true | |
| secrets: "inherit" | |
| Debug_Gemfile: | |
| if: github.event_name == 'workflow_dispatch' # Only run when manually triggered | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.2.7' | |
| bundler-cache: true | |
| - name: Check Ruby and Bundler versions | |
| run: | | |
| ruby -v | |
| bundle -v | |
| - name: Debug Environment Variables | |
| run: | | |
| echo "==== Environment Variables ====" | |
| env | grep FACTER || echo "No FACTER environment variables found" | |
| echo "==== END Environment Variables ====" | |
| - name: Debug Gemfile Content | |
| run: | | |
| echo "==== BEGIN GEMFILE CONTENT ====" | |
| cat Gemfile | |
| echo "==== END GEMFILE CONTENT ====" | |
| - name: Run bundle install with verbose output | |
| run: | | |
| bundle install --verbose || echo "Bundle install failed as expected" | |