2021-03-04 14:59:40 +00:00
|
|
|
name: Continous Integration
|
2020-02-14 22:22:28 +00:00
|
|
|
|
2020-10-07 13:25:30 +00:00
|
|
|
on: [pull_request]
|
2020-02-14 22:22:28 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2020-03-23 14:02:47 +00:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Use Node.js
|
2021-05-10 17:26:01 +00:00
|
|
|
uses: actions/setup-node@v2
|
2020-03-23 14:02:47 +00:00
|
|
|
with:
|
2021-05-10 17:26:01 +00:00
|
|
|
node-version: 15.x
|
2020-03-23 14:02:47 +00:00
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: yarn
|
|
|
|
|
2020-07-30 12:23:49 +00:00
|
|
|
- name: "Static code analysis: handshake-api"
|
|
|
|
run: yarn workspace handshake-api prettier --check .
|
2020-03-11 16:27:33 +00:00
|
|
|
|
2020-07-30 12:23:49 +00:00
|
|
|
- name: "Static code analysis: health-check"
|
|
|
|
run: yarn workspace health-check prettier --check .
|
|
|
|
|
2021-05-10 17:26:01 +00:00
|
|
|
- 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
|