Created
July 27, 2020 23:16
-
-
Save batmi02/df7b1b1ba6cca79add3df6d6001aa73d to your computer and use it in GitHub Desktop.
Satish Gist
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: 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