[BREAKING] fxconfig: create MSP-based namespace policies #42
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
| # | |
| # Copyright IBM Corp. All Rights Reserved. | |
| # | |
| # SPDX-License-Identifier: Apache-2.0 | |
| # | |
| name: Sample Tests | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| # Enable manual triggering | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| name: Token Samples Tests | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| include: | |
| - platform: "fabricx" | |
| - platform: "fabric3" | |
| fail-fast: false | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: Verify Go installation | |
| run: | | |
| go version | |
| echo "GOPATH: $GOPATH" | |
| echo "GOROOT: $GOROOT" | |
| - name: Set up Python | |
| if: ${{ matrix.platform == 'fabricx' }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.x" | |
| - name: Install Ansible | |
| if: ${{ matrix.platform == 'fabricx' }} | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install ansible ansible-core | |
| ansible --version | |
| - name: Run samples tests on ${{ matrix.platform }} | |
| env: | |
| PLATFORM: ${{ matrix.platform }} | |
| run: | | |
| cd samples/tokens | |
| make install-prerequisites test |