cosmos-explorer/.github/workflows/blank.yml

53 lines
1.5 KiB
YAML
Raw Normal View History

2020-05-26 20:44:36 +01:00
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: CI
2020-05-26 20:44:36 +01:00
on:
push:
branches: [master]
2020-05-26 20:44:36 +01:00
pull_request:
branches: [master]
2020-05-26 20:44:36 +01:00
jobs:
test:
runs-on: ubuntu-latest
name: "Unit Tests"
2020-05-26 20:44:36 +01:00
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- run: npm ci
- run: npm run test
2020-05-26 20:44:36 +01:00
build:
runs-on: ubuntu-latest
name: "Build"
2020-05-26 20:44:36 +01:00
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- run: npm ci
- run: npm run build:ci
endtoend:
name: "End to End Tests"
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: southpolesteve/cosmos-emulator-github-action@v1
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: End to End Tests
run: |
npm ci
npm start &
npm ci --prefix ./cypress
npm run test:ci --prefix ./cypress -- --spec ./integration/dataexplorer/ci-tests/createDatabase.spec.ts
shell: bash
env:
EMULATOR_ENDPOINT: https://0.0.0.0:8081/
NODE_TLS_REJECT_UNAUTHORIZED: 0