106 lines
2.0 KiB
YAML
Raw Normal View History

name: Core
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"]
2022-12-01 12:42:47 -05:00
paths:
2022-12-01 12:47:22 -05:00
- core/**
2022-12-01 12:42:47 -05:00
pull_request:
branches: ["main"]
2022-12-01 12:42:47 -05:00
paths:
2022-12-01 12:47:22 -05:00
- core/**
2022-12-01 12:42:47 -05:00
jobs:
2022-12-01 13:28:46 -05:00
build:
2022-12-01 12:42:47 -05:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
cache: yarn
cache-dependency-path: core/yarn.lock
node-version: 16
- name: Install
working-directory: ./core
run: |
yarn install --frozen-lockfile
- name: Build
working-directory: ./core
run: |
yarn build
2022-12-01 13:25:39 -05:00
lint:
2022-12-01 13:28:46 -05:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
cache: yarn
cache-dependency-path: core/yarn.lock
node-version: 16
- name: Install
working-directory: ./core
run: |
yarn install --frozen-lockfile
- name: Lint
working-directory: ./core
run: |
yarn lint
2022-12-04 22:15:59 -05:00
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
cache: yarn
cache-dependency-path: core/yarn.lock
node-version: 16
- name: Install
working-directory: ./core
run: |
yarn install --frozen-lockfile
- name: Test
working-directory: ./core
run: |
yarn test:ci
integration_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
cache: yarn
cache-dependency-path: core/yarn.lock
node-version: 16
- name: Install
working-directory: ./core
run: |
yarn install --frozen-lockfile
- name: Test
working-directory: ./core
run: |
yarn test:integration:ci