Update Datastage flow #10
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: MCIX CI Workflow | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| deploy-ci: | |
| name: Deploy to CI | |
| runs-on: ubuntu-latest | |
| environment: ci | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Verify MCIX runtime | |
| uses: MettleCI/mcix-system-version@v0 | |
| - name: Deploy DataStage assets | |
| id: deploy | |
| uses: MettleCI/mcix-composite-deploy@v0 | |
| with: | |
| api-key: ${{ secrets.CP4D_API_KEY }} | |
| url: ${{ vars.CP4D_URL }} | |
| user: ${{ vars.CP4D_USER }} | |
| project: ${{ vars.DATASTAGE_PROJECT }} | |
| assets: datastage | |
| overlays: overlays/ci | |
| output: build/ci-assets.zip | |
| import-report: reports/import-report.xml | |
| compile-report: reports/compile-report.xml | |
| - name: Execute DataStage unit tests | |
| id: unit-tests | |
| uses: MettleCI/mcix-unit-test-execute@v0 | |
| with: | |
| api-key: ${{ secrets.CP4D_API_KEY }} | |
| url: ${{ vars.CP4D_URL }} | |
| user: ${{ vars.CP4D_USER }} | |
| project: ${{ vars.DATASTAGE_PROJECT }} | |
| report: reports/unit-test-report.xml | |
| test-suite: mcix ci tests | |
| max-concurrency: 8 | |
| - name: Upload MCIX reports | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: mcix-reports | |
| path: reports/ |