48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
name: Continous Integration
|
|
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 15.x
|
|
|
|
- name: Install dependencies
|
|
run: yarn
|
|
|
|
- name: "Static code analysis: handshake-api"
|
|
run: yarn workspace handshake-api prettier --check .
|
|
|
|
- name: "Static code analysis: health-check"
|
|
run: yarn workspace health-check prettier --check .
|
|
|
|
- name: "Static code analysis: website"
|
|
run: yarn workspace website prettier --check .
|
|
|
|
- name: "Static code analysis: dashboard"
|
|
run: yarn workspace dashboard prettier --check .
|
|
|
|
# - name: "Build webapp"
|
|
# run: yarn workspace webapp build
|
|
# env:
|
|
# GATSBY_API_URL: "https://siasky.net"
|
|
|
|
# - name: Cypress run
|
|
# uses: cypress-io/github-action@v2
|
|
# env:
|
|
# CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
# with:
|
|
# working-directory: packages/webapp
|
|
# record: true
|
|
# start: npx http-server public --port 8000
|
|
# wait-on: "http://localhost:8000"
|
|
|
|
# - name: Cypress cache prune
|
|
# run: yarn cypress cache prune
|