useServiceGraph to start multiple simulators
#189
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: meta | |
| on: [pull_request] | |
| jobs: | |
| covector: | |
| name: Covector Status | |
| runs-on: ubuntu-latest | |
| outputs: | |
| status: ${{ steps.covector.outputs.status }} | |
| packagesReadyPathsSpaced: ${{ steps.covector.outputs.packagesReadyPathsSpaced }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 # required for use of git history | |
| - uses: volta-cli/action@v4 | |
| - name: covector status | |
| uses: jbolda/covector/packages/action@covector-v0 | |
| id: covector | |
| with: | |
| # in a fork, this token is undefined, but internally we would try and fail then fallback | |
| # normally with the default GITHUB_TOKEN in a fork it will still be defined, but with limited permissions | |
| # as a fallback we use the GITHUB_TOKEN which should then throw the appropriate error expected by covector | |
| token: ${{ secrets.FRONTSIDEJACK_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | |
| command: "status" | |
| comment: true | |
| - run: echo ${{ steps.covector.outputs.packagesPublished }} | |
| preview: | |
| name: Publish Preview Package | |
| needs: [covector] | |
| if: ${{ needs.covector.outputs.status != 'No changes.' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 # required for use of git history | |
| - uses: volta-cli/action@v4 | |
| - name: Install Node.js dependencies | |
| run: npm ci | |
| - name: Build All | |
| run: npm run prepack | |
| - name: Publish Preview Versions | |
| run: npx pkg-pr-new publish ${{ needs.covector.outputs.packagesReadyPathsSpaced }} |