2022-12-01 12:44:48 -05:00
|
|
|
name: Lint
|
2022-12-01 12:42:32 -05:00
|
|
|
|
|
|
|
on:
|
2022-12-01 12:48:22 -05:00
|
|
|
workflow_dispatch:
|
2022-12-01 12:42:32 -05:00
|
|
|
push:
|
|
|
|
branches: [ "main" ]
|
|
|
|
paths:
|
2022-12-01 12:46:50 -05:00
|
|
|
- core/**
|
2022-12-01 12:42:32 -05:00
|
|
|
pull_request:
|
|
|
|
branches: [ "main" ]
|
|
|
|
paths:
|
2022-12-01 12:46:50 -05:00
|
|
|
- core/**
|
2022-12-01 12:42:32 -05:00
|
|
|
|
|
|
|
jobs:
|
2022-12-01 13:18:55 -05:00
|
|
|
lint:
|
2022-12-01 12:42:32 -05:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
2022-12-01 12:46:50 -05:00
|
|
|
- name: Setup Node
|
2022-12-01 12:42:32 -05:00
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
2022-12-01 12:46:50 -05:00
|
|
|
cache: yarn
|
2022-12-01 12:52:20 -05:00
|
|
|
cache-dependency-path: core/yarn.lock
|
2022-12-01 12:46:50 -05:00
|
|
|
node-version: 16
|
2022-12-01 12:42:32 -05:00
|
|
|
|
2022-12-01 12:46:50 -05:00
|
|
|
- name: Install
|
|
|
|
working-directory: ./core
|
2022-12-01 12:42:32 -05:00
|
|
|
run: |
|
2022-12-01 12:53:29 -05:00
|
|
|
yarn install --frozen-lockfile
|
2022-12-01 12:42:32 -05:00
|
|
|
|
|
|
|
- name: Lint
|
2022-12-01 12:46:50 -05:00
|
|
|
working-directory: ./core
|
2022-12-01 12:42:32 -05:00
|
|
|
run: |
|
2022-12-01 12:53:29 -05:00
|
|
|
yarn lint
|