Skip to content

Commit

Permalink
Merge pull request #7 from SkywardAI/workflow
Browse files Browse the repository at this point in the history
add lint workflow
  • Loading branch information
cbh778899 authored Sep 10, 2024
2 parents 8e83dad + 33f09cd commit 17a7def
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Lint code

on:
# Runs on pushes targeting the default branch
pull_request:
branches: ['main']

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
cancel-in-progress: true

jobs:
code_quality:
name: 'Code Quality📦'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Lint
run: pnpm run lint

0 comments on commit 17a7def

Please sign in to comment.