feat(APP-543): Add build verification workflow and enhance e2e tests #4135
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
| # The "App Development" workflow runs on pull requests and pushes to the main branch. It builds a development version | |
| # of the application, runs checks (type checking, linting, tests, etc.), and deploys the application only for pushes to | |
| # the main branch. | |
| name: App Development | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| if: ${{ github.event_name != 'pull_request' || !startsWith(github.head_ref, 'release/') }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout actions | |
| uses: actions/checkout@v6.0.2 | |
| with: | |
| fetch-depth: 1 | |
| sparse-checkout: | | |
| .github/actions/setup | |
| - name: Setup | |
| uses: ./.github/actions/setup | |
| with: | |
| fetch-depth: 0 | |
| - name: Check types | |
| run: pnpm type-check | |
| - name: Check linter with formatter | |
| run: pnpm lint:check | |
| - name: Run tests with coverage | |
| run: | | |
| set -eo pipefail | |
| pnpm test:coverage | |
| - name: Check changeset | |
| if: github.event_name == 'pull_request' | |
| run: pnpm changeset status --since origin/main | |
| deploy: | |
| needs: test | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| uses: ./.github/workflows/shared-deploy.yml | |
| secrets: inherit | |
| with: | |
| domain: "dev.app.aragon.org" | |
| env: "development" | |
| e2e: | |
| needs: deploy | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| uses: ./.github/workflows/shared-e2e.yml | |
| secrets: inherit | |
| with: | |
| deployment-url: https://dev.app.aragon.org | |
| environment: development |