Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3 from swrlab/dev/linter-mig
Browse files Browse the repository at this point in the history
chore: move linter to new version
  • Loading branch information
frytg authored Aug 10, 2022
2 parents f2f56a2 + ca05b8b commit b0377f9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 47 deletions.
7 changes: 0 additions & 7 deletions .github/linters/.yamllint.yaml

This file was deleted.

47 changes: 7 additions & 40 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,13 @@
---
name: Linter

on:
workflow_dispatch:
pull_request:

env:
DEFAULT_BRANCH: main
EDITORCONFIG_FILE_NAME: /.editorconfig
IGNORE_GITIGNORED_FILES: true
JAVASCRIPT_DEFAULT_STYLE: prettier
JAVASCRIPT_ES_CONFIG_FILE: /.eslintrc.json
LINTER_RULES_PATH: /
LOG_LEVEL: VERBOSE
MARKDOWN_CONFIG_FILE: /.markdownlint.yaml
NODE_VERSION: 18
VALIDATE_ALL_CODEBASE: true
YAML_CONFIG_FILE: /.github/linters/.yamllint.yaml

jobs:
build:
name: Lint Code Base
runs-on: ubuntu-latest
timeout-minutes: 70
steps:
- name: 👀 Checkout repo
uses: actions/checkout@v3

- name: ⛺️ Install Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'yarn'
cache-dependency-path: '**/yarn.lock'

- name: 📦 Install Dependencies
run: yarn

- name: 📚 Lint Code Base
uses: docker://github/super-linter:v4
with:
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
lint:
uses: swrlab/node-utils/.github/workflows/linter.yml@main
with:
install-all: false
generate-keys: false
log-level: 'NOTICE'
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# SWR Audio Lab / Prettier Changelog

by [**SWR Audio Lab**](https://lab.swr.de/)

## Changelog

- 2022-08-09 - v0.2.0
- chore: update `super-linter` with new config
- until 2022-08-09 - v0.1.2
- feat: first project setup

0 comments on commit b0377f9

Please sign in to comment.