Skip to content

Commit

Permalink
Added cypress.yml in workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Ketul Shah <shah.ketul@ibm.com>
  • Loading branch information
ketulsha committed Oct 10, 2023
1 parent 531e2ee commit de7fc32
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Apollo CI

on:
pull_request:
branches: [ main ]

defaults:
run:
working-directory: ./packages/cypress/cypress
shell: bash

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 18.x
- run: npm ci --legacy-peer-deps
- run: npm run lint

audit:
name: NPM Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 16.x
- run: npm audit --production

build-code:
name: Build code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 18.x
- run: npm ci --legacy-peer-deps
- run: npm run build

unit-tests:
name: Unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 18.x
- run: npm ci --legacy-peer-deps
- run: npm test

0 comments on commit de7fc32

Please sign in to comment.