Skip to content

Instantly share code, notes, and snippets.

@batmi02
Created July 27, 2020 23:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save batmi02/df7b1b1ba6cca79add3df6d6001aa73d to your computer and use it in GitHub Desktop.
Save batmi02/df7b1b1ba6cca79add3df6d6001aa73d to your computer and use it in GitHub Desktop.
Satish Gist
name: CI
on:
push:
branches:
- '**'
env:
APPLITOOLS_API_KEY: ${{ secrets.APPLITOOLS_API_KEY }}
APPLITOOLS_BATCH_ID: ${{ github.sha }}
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Log Git SHA
run: echo "$GITHUB_SHA"
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '14.x'
- run: npm ci
- name: Run Tests
run: npm run cypress:ci
batch-completion-notification:
needs: run-tests
if: always()
runs-on: ubuntu-latest
steps:
- name: Update Applitools batch status
uses: wei/curl@v1.1.1
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 }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment