This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
2020-02-18 16:25:03 +00:00
|
|
|
name: skynet-webportal CI
|
2020-02-14 22:22:28 +00:00
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2020-03-23 14:02:47 +00:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Use Node.js
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: 12.x
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: yarn
|
|
|
|
|
|
|
|
- name: Static code analysis
|
|
|
|
run: yarn prettier --check .
|
2020-03-11 16:27:33 +00:00
|
|
|
|
2020-03-23 14:02:47 +00:00
|
|
|
- name: Build production bundle
|
|
|
|
run: yarn build
|
|
|
|
env:
|
|
|
|
GATSBY_API_URL: "https://siasky.net"
|
2020-03-11 16:27:33 +00:00
|
|
|
|
2020-03-23 14:02:47 +00:00
|
|
|
- name: Cypress run
|
|
|
|
uses: cypress-io/github-action@v1
|
|
|
|
env:
|
|
|
|
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
2020-07-30 23:03:21 +00:00
|
|
|
record: true
|
2020-03-23 14:02:47 +00:00
|
|
|
start: npx http-server public --port 8000
|
|
|
|
wait-on: "http://localhost:8000"
|