feat: check only affected packages in ci (#22) #18
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: Main | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| concurrency: | |
| group: main | |
| # Wait previous flow on main branch | |
| cancel-in-progress: false | |
| jobs: | |
| npm-ci: | |
| name: "pnpm install" | |
| uses: ./.github/workflows/pnpm-install.yml | |
| deploy: | |
| name: "Deploy staging" | |
| uses: ./.github/workflows/deploy.yml | |
| needs: npm-ci | |
| secrets: | |
| SA_DEPLOYER_PRIVATE_KEY: ${{ secrets.SA_STAGING_DEPLOYER_PRIVATE_KEY }} | |
| S3_KEY_ID: ${{ secrets.S3_KEY_ID }} | |
| S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }} | |
| SUPABASE_PROJECT_ID: ${{ secrets.SUPABASE_PROJECT_ID }} | |
| SUPABASE_PROJECT_URL: ${{ secrets.SUPABASE_PROJECT_URL }} | |
| SUPABASE_PROJECT_KEY: ${{ secrets.SUPABASE_PROJECT_KEY }} | |
| with: | |
| main: true | |
| revision_name: prod | |
| cloud_id: b1g9utblfaj1k8am3nmg | |
| folder_name: languages-learner | |
| sa_deployer_id: ajelfqpn1n9hn128gsc4 | |
| container_registry_id: crp7sst4j2jnr7n52g3g | |
| bundle-stats: | |
| name: "Bundle stats" | |
| uses: ./.github/workflows/bundle-stats.yml | |
| needs: deploy | |
| secrets: | |
| S3_KEY_ID: ${{ secrets.S3_KEY_ID }} | |
| S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }} | |
| with: | |
| main: true | |
| bundle_stats_s3_dir: /prod/commits/${{ github.sha }}/bundle-stats | |
| working_directory: apps/web | |
| precommit-checks: | |
| name: "Pre-commit checks" | |
| needs: npm-ci | |
| uses: ./.github/workflows/precommit-checks.yml | |
| components-tests: | |
| name: "Components tests" | |
| needs: npm-ci | |
| uses: ./.github/workflows/components-tests.yml | |
| deploy-storybook: | |
| name: Deploy storybook | |
| needs: npm-ci | |
| uses: ./.github/workflows/storybook.yml | |
| secrets: | |
| S3_KEY_ID: ${{ secrets.S3_KEY_ID }} | |
| S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }} | |
| with: | |
| dest_path: /prod/storybook |