Skip to content

Commit

Permalink
Isolate lint GitHub Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dotNomad committed Mar 20, 2024
1 parent b815274 commit 77caf62
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: lint
on: [workflow_call]
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 lint
- run: just vscode check-format
2 changes: 2 additions & 0 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
jobs:
lint:
uses: ./.github/workflows/lint.yaml
# Unit Tests
agent:
uses: ./.github/workflows/agent.yaml
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/vscode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ jobs:
path: ./extensions/vscode/.vscode-test/vscode-*
key: ${{ matrix.runner }}-vscode-${{ env.VSCODE_VERSION }}-${{ steps.get-date.outputs.date }}
- run: just vscode configure
- run: just vscode lint
- run: just vscode check-format
- run: just vscode test
- uses: actions/cache/save@v3
if: steps.cache.outputs.cache-hit != 'true'
Expand All @@ -53,8 +51,6 @@ jobs:
path: ./extensions/vscode/.vscode-test/vscode-*
key: docker-vscode-${{ env.VSCODE_VERSION }}-${{ steps.get-date.outputs.date }}
- run: just vscode configure
- run: just vscode lint
- run: just vscode check-format
- run: just vscode test
- uses: actions/cache/save@v3
if: steps.cache.outputs.cache-hit != 'true'
Expand Down

0 comments on commit 77caf62

Please sign in to comment.