52 lines
828 B
YAML
Raw Normal View History

2022-12-01 12:44:36 -05:00
name: Build
2022-12-01 12:42:47 -05:00
on:
2022-12-01 12:48:11 -05:00
workflow_dispatch:
2022-12-01 12:42:47 -05:00
push:
branches: [ "main" ]
paths:
2022-12-01 12:47:22 -05:00
- core/**
2022-12-01 12:42:47 -05:00
pull_request:
branches: [ "main" ]
paths:
2022-12-01 12:47:22 -05:00
- core/**
2022-12-01 12:42:47 -05:00
jobs:
2022-12-01 13:25:39 -05:00
setup:
2022-12-01 12:42:47 -05:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
2022-12-01 12:47:22 -05:00
- name: Setup Node
2022-12-01 12:42:47 -05:00
uses: actions/setup-node@v3
with:
2022-12-01 12:47:22 -05:00
cache: yarn
2022-12-01 12:56:25 -05:00
cache-dependency-path: core/yarn.lock
2022-12-01 12:47:22 -05:00
node-version: 16
2022-12-01 13:25:39 -05:00
2022-12-01 12:47:22 -05:00
- name: Install
working-directory: ./core
2022-12-01 12:42:47 -05:00
run: |
2022-12-01 12:56:25 -05:00
yarn install --frozen-lockfile
2022-12-01 13:25:39 -05:00
build:
needs: setup
runs-on: ubuntu-latest
2022-12-01 12:42:47 -05:00
2022-12-01 13:25:39 -05:00
steps:
2022-12-01 12:42:47 -05:00
- name: Build
2022-12-01 12:47:22 -05:00
working-directory: ./core
2022-12-01 12:42:47 -05:00
run: |
2022-12-01 12:56:25 -05:00
yarn build
2022-12-01 13:25:39 -05:00
lint:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Lint
working-directory: ./core
run: |
yarn lint