Skip to content

Commit

Permalink
feat: add linter
Browse files Browse the repository at this point in the history
* enable workflows for develop
  • Loading branch information
GoetzGoerisch committed Apr 12, 2024
1 parent e58f914 commit 5de4269
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docker-publish-arm64.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
---
name: Docker

on:
push:
branches: [ main ]
branches: [ main, develop ]
# Publish semver tags as releases.
tags: [ 'v*.*.*' ]
pull_request:
branches: [ main ]
branches: [ main, develop ]

env:
REGISTRY: ghcr.io
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Docker

# This workflow uses actions that are not certified by GitHub.
Expand All @@ -9,11 +10,11 @@ on:
schedule:
- cron: '23 9 * * *'
push:
branches: [ main ]
branches: [ main, develop ]
# Publish semver tags as releases.
tags: [ 'v*.*.*' ]
pull_request:
branches: [ main ]
branches: [ main, develop ]

env:
# Use docker.io for Docker Hub if empty
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
name: Lint

on: # yamllint disable-line rule:truthy
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]

permissions:
contents: read
packages: write

jobs:
build:
name: Lint
runs-on: ubuntu-latest

permissions:
contents: read
packages: read
# To report GitHub Actions status checks
statuses: write

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
# super-linter needs the full git history to get the
# list of files that changed across commits
fetch-depth: 0

- name: Super-linter
uses: super-linter/[email protected]
env:
# To report GitHub Actions status checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_ALL_CODEBASE: false
VALIDATE_CHECKOV: false

0 comments on commit 5de4269

Please sign in to comment.