Skip to content

Commit

Permalink
Create lint github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dotNomad committed Mar 20, 2024
1 parent a1550ae commit 1e6d9a0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Lint
on: [workflow_call]
env:
DOCKER: false
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: extractions/setup-just@v2
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- run: just vscode deps
- run: just vscode lint
- run: just vscode check-format
4 changes: 4 additions & 0 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
jobs:
# Linting and formatting
lint:
uses: ./.github/workflows/lint.yaml

# Unit Tests
agent:
uses: ./.github/workflows/agent.yaml
Expand Down

0 comments on commit 1e6d9a0

Please sign in to comment.