zipline/.github/workflows/build.yml

33 lines
918 B
YAML
Raw Normal View History

2021-06-23 13:20:20 -05:00
name: 'CI: Build'
on:
push:
branches: [ trunk ]
pull_request:
branches: [ trunk ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '16.x'
- name: 'Restore dependency cache'
id: cache-restore
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}
2021-09-24 22:41:26 -05:00
- name: Create mock config
run: echo -e "[core]\nsecret = '12345678'\ndatabase_url = 'postgres://postgres:postgres@postgres/postgres'\n[uploader]\nroute = '/u'\ndirectory = './uploads'\n[urls]\nroute = '/go'" > config.toml
2021-06-23 13:20:20 -05:00
- name: Install dependencies
if: steps.cache-restore.outputs.cache-hit != 'true'
run: yarn install
2021-09-24 22:41:26 -05:00
2021-06-23 13:20:20 -05:00
- name: Build
2021-09-24 22:41:26 -05:00
run: yarn build