From 61ed7bfd216a5687e2f44ed0f78cba7764f82798 Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Tue, 27 Feb 2024 05:47:27 -0500 Subject: [PATCH] feat: add simple github workflow Signed-off-by: Adam Setch --- .github/workflows/lint.yaml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 67569c526..748e0e5dd 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -9,8 +9,9 @@ env: NODE_VERSION: 18 jobs: - lint-prettier: + setup: runs-on: ubuntu-latest + steps: - name: Checkout Repository uses: actions/checkout@v4.1.1 @@ -21,20 +22,19 @@ jobs: node-version: ${{ env.NODE_VERSION }} cache: 'npm' + - name: Install Dependencies + run: npm install + + lint-prettier: + needs: setup + runs-on: ubuntu-latest + steps: - name: Lint run: npm run prettier lint-eslint: + needs: setup runs-on: ubuntu-latest steps: - - name: Checkout Repository - uses: actions/checkout@v4.1.1 - - - name: Set up NodeJs - uses: actions/setup-node@v4.0.2 - with: - node-version: ${{ env.NODE_VERSION }} - cache: 'npm' - - name: Lint run: npm run eslint