Skip to content

build on master

build on master #1

Workflow file for this run

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 }}