feat: redesign continue section as compact module with smart filtering #810
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: CI | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [20.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v2 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: "pnpm" | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Typecheck | |
| run: pnpm run typecheck | |
| - name: Build | |
| run: pnpm run build | |
| - name: Pack tarballs | |
| run: | | |
| mkdir -p /tmp/npm-smoke | |
| pnpm -C packages/contracts pack --pack-destination /tmp/npm-smoke | |
| pnpm -C packages/core pack --pack-destination /tmp/npm-smoke | |
| pnpm -C packages/cli pack --pack-destination /tmp/npm-smoke | |
| - name: Smoke test packed CLI | |
| run: | | |
| VERSION="$(node -p "require('./packages/cli/package.json').version")" | |
| CONTRACTS_TGZ="/tmp/npm-smoke/opengoat-contracts-${VERSION}.tgz" | |
| CORE_TGZ="/tmp/npm-smoke/opengoat-core-${VERSION}.tgz" | |
| CLI_TGZ="/tmp/npm-smoke/opengoat-${VERSION}.tgz" | |
| ./scripts/smoke-packed-cli.sh "$CONTRACTS_TGZ" "$CORE_TGZ" "$CLI_TGZ" | |
| - name: Test | |
| run: pnpm test |