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.
skynet-webportal/.github/workflows/build.yml

36 lines
812 B
YAML

name: skynet-webportal CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 14.6
- name: Install dependencies
run: yarn
- name: Static code analysis
run: yarn prettier --check .
- name: Build production bundle
run: yarn build
env:
GATSBY_API_URL: "https://siasky.net"
- name: Cypress run
uses: cypress-io/github-action@v1
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
record: true
start: npx http-server public --port 8000
wait-on: "http://localhost:8000"