From 7b5912ed86f3d76bfe3346928cba2a47279b2f82 Mon Sep 17 00:00:00 2001 From: niklhut <49069026+niklhut@users.noreply.github.com> Date: Fri, 1 Dec 2023 21:07:27 +0100 Subject: [PATCH] Add lint action --- .github/workflows/docker-img.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/docker-img.yml b/.github/workflows/docker-img.yml index c5dd8b9..75bf589 100644 --- a/.github/workflows/docker-img.yml +++ b/.github/workflows/docker-img.yml @@ -17,9 +17,30 @@ env: REGISTRY: ghcr.io jobs: + lint: + name: Lint Code + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: latest + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Lint code + run: npm run lint + ghr_push: name: Build and publish container runs-on: ubuntu-latest + needs: lint permissions: contents: read packages: write