zipline/.github/workflows/build.yml

38 lines
950 B
YAML
Raw Normal View History

2022-07-12 23:32:52 -05:00
name: 'Build'
2021-06-23 13:20:20 -05:00
on:
push:
branches: [ trunk ]
pull_request:
branches: [ trunk ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
2022-10-28 23:01:02 -05:00
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
2021-06-23 13:20:20 -05:00
with:
2022-10-29 12:53:21 -05:00
node-version: '18.x'
2022-10-28 23:01:02 -05:00
2021-06-23 13:20:20 -05:00
- name: 'Restore dependency cache'
id: cache-restore
2022-10-28 23:01:49 -05:00
uses: actions/cache@v3
2021-06-23 13:20:20 -05:00
with:
2022-10-27 23:26:54 -05:00
path: |
node_modules
${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-node${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
restore-keys: |
${{ runner.os }}-node${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}-
2021-09-24 22:41:26 -05:00
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
2022-07-12 23:32:52 -05:00
run: yarn build
env:
ZIPLINE_DOCKER_BUILD: true