Port/amm config panel main #187
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
| name: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| env: | |
| NODE_VERSION: "22.21.1" | |
| PNPM_VERSION: "10" | |
| SUI_CLI_VERSION: "1.63.1" | |
| CI: true | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup | |
| - run: pnpm lint | |
| typecheck: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup | |
| - run: pnpm typecheck | |
| unit: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| suite: [dapp, tooling] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup | |
| - name: Run unit tests | |
| run: | | |
| mkdir -p reports | |
| pnpm --filter ${{ matrix.suite }} test:unit -- \ | |
| --reporter=default \ | |
| --reporter=junit \ | |
| --outputFile=reports/vitest-unit-${{ matrix.suite }}.xml \ | |
| --coverage | |
| - name: Upload unit test artifacts on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: unit-${{ matrix.suite }}-artifacts | |
| path: | | |
| reports/** | |
| coverage/** | |
| if-no-files-found: ignore | |
| ui-build: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup | |
| - run: pnpm ui build | |
| integration: | |
| needs: | |
| - lint | |
| - typecheck | |
| - unit | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 45 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: dapp | |
| command: pnpm dapp test:integration | |
| report: reports/vitest-dapp-integration.xml | |
| env: | |
| SUI_IT_WITH_FAUCET: "1" | |
| SUI_IT_KEEP_TEMP: "1" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup | |
| - uses: ./.github/actions/setup-sui | |
| - name: Run ${{ matrix.name }} integration tests | |
| run: | | |
| mkdir -p reports | |
| ${{ matrix.command }} -- \ | |
| --reporter=default \ | |
| --reporter=junit \ | |
| --outputFile=${{ matrix.report }} | |
| - name: Upload ${{ matrix.name }} integration artifacts on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ matrix.name }}-integration-artifacts | |
| path: | | |
| reports/** | |
| /tmp/sui-it-*/logs/** | |
| if-no-files-found: ignore | |
| security-audit: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup | |
| - run: pnpm audit --audit-level=high |