Skip to content

Commit

Permalink
Separate lint and docker image actions
Browse files Browse the repository at this point in the history
  • Loading branch information
niklhut committed Dec 8, 2023
1 parent b079e95 commit f28e799
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 21 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/docker-img.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,9 @@ 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
32 changes: 32 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Lint

on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main

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

0 comments on commit f28e799

Please sign in to comment.