build on master #1
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: CI | |
| on: | |
| pull_request: | |
| merge_group: | |
| push: | |
| branches: | |
| - master # Triggers on pushes to the master branch | |
| env: | |
| APPLITOOLS_API_KEY: ${{ secrets.APPLITOOLS_API_KEY }} | |
| APPLITOOLS_BATCH_ID: ${{ github.event.pull_request.head.sha }} | |
| jobs: | |
| run-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Log Git SHA | |
| run: echo "$APPLITOOLS_BATCH_ID" | |
| - name: Use Node.js | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: '14.x' | |
| - name: Cypress run | |
| uses: cypress-io/github-action@v5 | |
| with: | |
| working-directory: tutorial-cypress | |
| batch-completion-notification: | |
| needs: run-tests | |
| if: always() | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Update Applitools batch status | |
| uses: wei/[email protected] | |
| with: | |
| args: -d "" -X POST https://eyesapi.applitools.com/api/externals/github/servers/github.com/commit/${{ env.APPLITOOLS_BATCH_ID }}/complete?apiKey=${{ secrets.APPLITOOLS_API_KEY }} |