Skip to content

Commit

Permalink
Upgrade dev dependencies (ESLint + TypeScript) and add CI checks
Browse files Browse the repository at this point in the history
  • Loading branch information
ShukantPal committed Oct 8, 2024
1 parent e57270a commit 924318e
Show file tree
Hide file tree
Showing 57 changed files with 2,163 additions and 1,152 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v4

- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Setup PNPM
uses: pnpm/action-setup@v4
with:
version: 8.15.6
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
- run: pnpm i -g @microsoft/rush

- run: rush install
- run: rush rebuild

34 changes: 34 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Lint

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v4

- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Setup PNPM
uses: pnpm/action-setup@v4
with:
version: 8.15.6
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
- run: pnpm i -g @microsoft/rush

- run: rush install
- run: rush lint

39 changes: 0 additions & 39 deletions .github/workflows/node.js.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/type-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Type Check

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v4

- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Setup PNPM
uses: pnpm/action-setup@v4
with:
version: 8.15.6
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
- run: pnpm i -g @microsoft/rush

- run: rush install
- run: rush build:types -f @pixi-essentials/svg

10 changes: 10 additions & 0 deletions common/config/rush/command-line.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@
"description": "@microsoft/api-extractor is used to bundle the compiler generated .d.ts files",
"safeForSimultaneousRushProcesses": true,
"enableParallelism": true,
"ignoreMissingScript": true,
"allowWarningsInSuccessfulBuild": true
},
{
"commandKind": "bulk",
"name": "lint",
"summary": "Lint all TypeScript files in the project",
"description": "Uses ESLint to lint all TypeScript files in the project",
"safeForSimultaneousRushProcesses": true,
"enableParallelism": true,
"ignoreMissingScript": true
}
]
Expand Down
Loading

0 comments on commit 924318e

Please sign in to comment.