Skip to content

Commit

Permalink
Add code linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Luzifer committed Aug 19, 2024
1 parent 5c4c0eb commit 6ba0fe4
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,34 @@ name: CI Workflow
on: push

jobs:
test:
defaults:
run:
shell: bash

container:
image: luzifer/gh-arch-env

permissions:
contents: read

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
show-progress: false

- name: Marking workdir safe
run: git config --global --add safe.directory /__w/stadt-land-fluss/stadt-land-fluss

- name: Lint code
run: make frontend_lint trivy

gh-page-publish:
if: ${{ github.ref == 'refs/heads/master' }}
needs: [test]

defaults:
run:
shell: bash
Expand Down
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,11 @@ frontend_lint: node_modules

node_modules:
npm ci --include dev

trivy:
trivy fs . \
--dependency-tree \
--format table \
--quiet \
--scanners misconfig,license,secret,vuln \
--severity HIGH,CRITICAL

0 comments on commit 6ba0fe4

Please sign in to comment.