-
Notifications
You must be signed in to change notification settings - Fork 67
40 lines (37 loc) · 991 Bytes
/
static.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Lint
on:
push:
branches: [main, 'release/**', 'feature/**']
pull_request:
branches: [main, 'release/**', 'feature/**']
jobs:
Static:
name: ${{ matrix.name }}
runs-on: ubuntu-latest
env:
MODULAR_LOGGER_DEBUG: true
strategy:
fail-fast: false
matrix:
include:
- name: Prettier
command: 'prettier --check .'
- name: Typecheck
command: typecheck
- name: Lint
command: lint
- name: Build
command: build
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/[email protected]
with:
node-version: '18.x'
cache: 'yarn'
- name: 'Install Dependencies'
run: yarn --frozen-lockfile
- name: 'Build internal prerequisites'
run: yarn workspace @modular-scripts/workspace-resolver build
- name: ${{ matrix.name }}
run: yarn ${{ matrix.command }}