Skip to content

Commit

Permalink
Add lint action
Browse files Browse the repository at this point in the history
  • Loading branch information
niklhut committed Dec 8, 2023
1 parent 3b5827b commit b079e95
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/docker-img.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b079e95

Please sign in to comment.