chore: Update workflow #46
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: setup.yml | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [master] | |
| jobs: | |
| setup-test: | |
| if: true | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| fcli_url: https://github.com/fortify/fcli/releases/download/dev_feat.ci-updates/fcli-linux.tgz | |
| - os: windows-latest | |
| fcli_url: https://github.com/fortify/fcli/releases/download/dev_feat.ci-updates/fcli-windows.zip | |
| - os: macos-latest | |
| fcli_url: https://github.com/fortify/fcli/releases/download/dev_feat.ci-updates/fcli-mac.tgz | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Setup fcli & sc-client | |
| uses: fortify/github-action/setup@feat/fcli-ci | |
| with: | |
| sc-client: latest | |
| fcli: v3 | |
| env: | |
| FCLI_URL: ${{ matrix.fcli_url }} | |
| - name: Verify fcli installation | |
| if: always() | |
| run: ls -laR ${RUNNER_TOOL_CACHE}/fcli ; ls -laR ${RUNNER_TOOL_CACHE}/sc-client | |
| shell: bash | |
| - name: Show env vars | |
| if: always() | |
| run: env | |
| shell: bash | |
| - name: Show fcli version | |
| if: always() | |
| run: fcli --version | |
| shell: bash | |
| - name: Show sc-client version | |
| if: always() | |
| run: scancentral --version | |
| shell: bash | |
| - name: Run sc-client through fcli | |
| if: always() | |
| run: fcli tool sc-client run -- --version | |
| shell: bash |