Merge pull request #141 from cyprus-developer-community/dependabot/gi… #66
This file contains 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 Pipeline | |
on: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
codequality: | |
name: Check | |
uses: ./.github/workflows/codequality.yml | |
unit: | |
name: Check | |
uses: ./.github/workflows/unit.yml | |
deploy: | |
name: Deploy cdc.cy | |
runs-on: ubuntu-latest | |
needs: [codequality, unit] | |
if: needs.codequality.result == 'success' && needs.unit.result == 'success' | |
steps: | |
- uses: styfle/[email protected] | |
- uses: actions/checkout@v4 | |
- uses: superfly/[email protected] | |
with: | |
args: | |
'deploy --app cdc-cy --remote-only --build-arg COMMIT_SHA=${{ | |
github.sha }}' | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | |
e2e: | |
name: Testing | |
needs: [deploy] | |
if: needs.deploy.result == 'success' | |
uses: ./.github/workflows/e2e.yml | |
with: | |
node-version: lts/hydrogen | |
pnpm-version: 7.x |