Merge pull request #1181 from openmina/dw/unify-ci-makefile #987
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: Frontend CI | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| paths: [ "frontend/**", ".github/frontend.yaml" ] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| frontend-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Git checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| sparse-checkout: | | |
| frontend | |
| - name: Run tests | |
| uses: cypress-io/github-action@v6 | |
| with: | |
| working-directory: frontend | |
| start: npm start | |
| wait-on: http://localhost:4200 | |
| wait-on-timeout: 180s |