Skip to content

Commit

Permalink
[github] create lint and type check workflow (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
Simek authored Aug 10, 2023
1 parent 14f791d commit 1993a62
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 6 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/lint-and-tsc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Lint and TSC

on:
push:
branches: [main]
paths:
- .github/workflows/lint-and-tsc.yml
- apps/**
- packages/**
- ts-declarations/**
pull_request:
paths:
- .github/workflows/lint-and-tsc.yml
- apps/**
- packages/**
- ts-declarations/**

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
runs-on: ubuntu-22.04
steps:
- name: 👀 Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: ⬢ Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
- name: 🧶 Install workspace node modules
run: yarn install --frozen-lockfile

- name: 🏗️ TSC "eas-shared" package files
run: yarn tsc --noEmit
working-directory: packages/eas-shared
- name: 📦️ Build "eas-shared" package
run: yarn build
working-directory: packages/eas-shared

- name: 🚨 Lint "Orbit" app files
run: yarn lint --max-warnings 0
working-directory: apps/menu-bar
- name: 🏗️ TSC "Orbit" app files
run: yarn tsc --noEmit
working-directory: apps/menu-bar

- name: 🏗️ TSC "CLI" app files
run: yarn tsc --noEmit
working-directory: apps/cli
8 changes: 2 additions & 6 deletions apps/menu-bar/src/utils/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,7 @@ export const bgDark = {

export const border = {
default: {
borderColor: {
semantic: 'gridColor',
},
borderColor: PlatformColor('gridColor'),
borderWidth: 1,
},
warning: {borderColor: lightTheme.border.warning, borderWidth: 1},
Expand All @@ -243,9 +241,7 @@ export const border = {

export const borderDark = {
default: {
borderColor: {
semantic: PlatformColor('controlColor'),
},
borderColor: PlatformColor('controlColor'),
borderWidth: 1,
},
warning: {borderColor: darkTheme.border.warning, borderWidth: 1},
Expand Down
1 change: 1 addition & 0 deletions packages/eas-shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"scripts": {
"build": "tsc --project tsconfig.build.json",
"watch": "yarn build --watch --preserveWatchOutput",
"lint": "eslint .",
"typecheck": "tsc"
},
"devDependencies": {
Expand Down

0 comments on commit 1993a62

Please sign in to comment.