Skip to content

Commit

Permalink
Merge pull request #29 from KID-joker/ci-lint
Browse files Browse the repository at this point in the history
ci: lint
  • Loading branch information
KID-joker authored Nov 24, 2024
2 parents ef96c3d + d912c61 commit ec3ba80
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/automated-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Automated Lint

on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]

permissions:
contents: read

jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
node-version: [22]

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
cache-dependency-path: pnpm-lock.yaml
node-version: ${{ matrix.node-version }}
check-latest: true
cache: npm

- name: Install dependencies
run: npx pnpm install

- name: Check linting
run: npx pnpm lint

- name: Check type
run: npx pnpm typecheck
4 changes: 2 additions & 2 deletions .github/workflows/automated-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This workflow will do a clean install of node dependencies, check the linting and run tests across different versions of node.
# This workflow will do a clean install of node dependencies, run tests across different versions of node.

name: Automated Tests

Expand Down Expand Up @@ -82,4 +82,4 @@ jobs:
run: pnpm install --prod

- name: Run tests
run: pnpm test
run: pnpm test

0 comments on commit ec3ba80

Please sign in to comment.