feat(indexd): add contract delete #6238
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: PR | |
| permissions: | |
| contents: read | |
| actions: write # Needed because this workflow calls the e2e reusable workflow, which uploads/downloads artifacts. | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, closed] | |
| # cancel previous runs when the PR is updated | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test-js: | |
| runs-on: ubuntu-latest | |
| if: ${{ github.event_name == 'pull_request' && github.event.action != 'closed' && !startsWith(github.head_ref, 'changeset-release/') }} | |
| steps: | |
| - name: Checkout all commits | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| # Full setup required since building the JS SDK requires Go | |
| - name: Setup | |
| uses: ./.github/actions/setup-all | |
| with: | |
| bun_version: 1.2.18 | |
| go_version: 1.24.3 | |
| - name: Commit lint | |
| shell: bash | |
| run: bunx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} | |
| - name: Lint TypeScript | |
| shell: bash | |
| run: nx affected --target=lint --parallel=5 | |
| - name: Test TypeScript | |
| shell: bash | |
| run: nx affected --target=test --parallel=5 | |
| - name: Build | |
| shell: bash | |
| run: nx affected --target=build --configuration=production --parallel=5 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Export | |
| shell: bash | |
| # issue with parallelism | |
| run: nx affected --target=build --configuration=export --parallel=5 | |
| e2e: | |
| if: ${{ github.event_name == 'pull_request' && github.event.action != 'closed' && !startsWith(github.head_ref, 'changeset-release/') }} | |
| uses: ./.github/workflows/e2e.yml | |
| test-go: | |
| # Run matrix since Go modules are used across all platforms | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| module: [./renterd, ./hostd, ./walletd, ./indexd] | |
| if: ${{ github.event_name == 'pull_request' && github.event.action != 'closed' && !startsWith(github.head_ref, 'changeset-release/') }} | |
| steps: | |
| - name: Checkout all commits | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Git | |
| uses: ./.github/actions/setup-git | |
| # Only Go setup is necessary for running Go tests | |
| - name: Setup Go | |
| uses: ./.github/actions/setup-go | |
| with: | |
| go_version: 1.24.3 | |
| - name: Lint Go | |
| uses: golangci/golangci-lint-action@v4 | |
| with: | |
| working-directory: ${{ matrix.module }} | |
| skip-cache: true | |
| - name: Test Go | |
| uses: n8maninger/action-golang-test@v2 | |
| with: | |
| args: '-race' | |
| working-directory: ${{ matrix.module }} | |
| package: ./... |