31 lines
657 B
YAML
31 lines
657 B
YAML
name: Portal-Catalog-Tests
|
|
on: push
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install modules
|
|
run: |
|
|
cd examples/catalog
|
|
yarn
|
|
- name: Run tests
|
|
run: |
|
|
cd examples/catalog
|
|
yarn test -u
|
|
|
|
cypress-run:
|
|
runs-on: ubuntu-16.04
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Cypress run
|
|
uses: cypress-io/github-action@v2
|
|
with:
|
|
working-directory: examples/catalog
|
|
browser: chrome
|
|
build: yarn run build
|
|
start: yarn start
|
|
wait-on: "http://localhost:3000"
|