chore(deps): update actions (major) #18
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: Test install-workstation action | |
| "on": | |
| pull_request: | |
| jobs: | |
| detect-changes: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| install-workstation: ${{ steps.filter.outputs.install-workstation }} | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v6 | |
| - name: Detect changed paths | |
| uses: dorny/paths-filter@v4 | |
| id: filter | |
| with: | |
| filters: | | |
| install-workstation: | |
| - '.github/actions/install-workstation/**' | |
| test: | |
| needs: [detect-changes] | |
| if: needs.detect-changes.outputs.install-workstation == 'true' | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| version: ["24", "latest"] | |
| runs-on: ${{ matrix.os }} | |
| name: runner / install-workstation ${{ matrix.os }} v${{ matrix.version }} | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v6 | |
| - name: Install Cinc Workstation | |
| uses: ./.github/actions/install-workstation | |
| with: | |
| version: ${{ matrix.version }} | |
| - name: Verify chef command is available | |
| shell: bash | |
| run: chef --version | |
| check-markdown: | |
| runs-on: ubuntu-latest | |
| name: runner / markdownlint | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v6 | |
| - name: Run Markdown Lint | |
| uses: DavidAnson/markdownlint-cli2-action@v23 | |
| with: | |
| globs: "**/*.md" | |
| check-yaml: | |
| runs-on: ubuntu-latest | |
| name: runner / yamllint | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v6 | |
| - name: Run yaml Lint | |
| uses: actionshub/yamllint@main | |
| check-workflows: | |
| runs-on: ubuntu-latest | |
| name: runner / actionlint | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v6 | |
| - name: Run actionlint | |
| uses: raven-actions/actionlint@v2 | |
| final: | |
| runs-on: ubuntu-latest | |
| name: final | |
| needs: [test, check-markdown, check-yaml, check-workflows] | |
| if: always() | |
| steps: | |
| - name: Check results | |
| run: | | |
| declare -A results=( | |
| [test]="${{ needs.test.result }}" | |
| [check-markdown]="${{ needs.check-markdown.result }}" | |
| [check-yaml]="${{ needs.check-yaml.result }}" | |
| [check-workflows]="${{ needs.check-workflows.result }}" | |
| ) | |
| failed=0 | |
| for job in "${!results[@]}"; do | |
| result="${results[$job]}" | |
| if [[ "$result" == "failure" || "$result" == "cancelled" ]]; then | |
| echo "::error::$job: $result" | |
| failed=1 | |
| else | |
| echo "$job: $result" | |
| fi | |
| done | |
| exit $failed |