Skip to content

Commit

Permalink
Add tsc and build to CI (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
psvenk authored Dec 3, 2024
1 parent 3ff2056 commit 91d1f32
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,35 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: psf/black@stable
eslint:
name: ESLint
prettier:
name: Prettier
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.node-version }}
- name: Install node
uses: actions/setup-node@v4
with:
node-version: ${{ env.node-version }}
cache: 'npm'
- name: Install node dependencies
run: npm install
- name: Run ESLint
run: npm run ci-eslint
prettier:
name: Prettier
- name: Run Prettier
run: npm run ci-prettier
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.node-version }}
- name: Install node
uses: actions/setup-node@v4
with:
node-version: ${{ env.node-version }}
cache: 'npm'
- name: Install node dependencies
run: npm install
- name: Run Prettier
run: npm run ci-prettier
- name: Run ESLint
run: npm run ci-eslint
- name: Run tsc
run: npx -p typescript@latest tsc
- name: Run build
run: npm run build
4 changes: 1 addition & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 91d1f32

Please sign in to comment.