diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 0000000000..28179ad5f3 --- /dev/null +++ b/.github/workflows/lint.yaml @@ -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 diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml index 8bf5c6f8af..b937902e9d 100644 --- a/.github/workflows/pull-request.yaml +++ b/.github/workflows/pull-request.yaml @@ -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 diff --git a/.github/workflows/vscode.yaml b/.github/workflows/vscode.yaml index e9f9eb3997..c3451022b2 100644 --- a/.github/workflows/vscode.yaml +++ b/.github/workflows/vscode.yaml @@ -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' @@ -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'