Skip to content

Commit

Permalink
Add separate lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
janka102 committed Nov 15, 2024
1 parent 3ac7dbf commit 829a863
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@ permissions:
id-token: write

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v4
- name: Check formatting of code
run: npm run format:check

build:
runs-on: ubuntu-latest
steps:
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Lint

on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- main
pull_request:
branches:
- main

permissions: {}

jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest

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

steps:
- name: Check out Git repository
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: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 20

- name: Install Node.js dependencies
run: npm ci

- name: Super-Linter
uses: super-linter/super-linter/slim@v7.1.0
env:
# To report GitHub Actions status checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 829a863

Please sign in to comment.