mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-10-20 17:53:45 +00:00
ci: migrate eslint and stylelint from codacy to gh-actions
This commit is contained in:
parent
b855e8b6b4
commit
648398c63c
30
.github/workflows/lint-js.yml
vendored
Normal file
30
.github/workflows/lint-js.yml
vendored
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
name: Lint JS
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- "_javascript/**/*.js"
|
||||||
|
- ".github/workflows/scripts/**/*.js"
|
||||||
|
- "*.js"
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- "_javascript/**/*.js"
|
||||||
|
- ".github/workflows/scripts/*.js"
|
||||||
|
- "*.js"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint-js:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: lts/*
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: npm i
|
||||||
|
|
||||||
|
- name: Lint JS
|
||||||
|
run: npm run lint:js
|
26
.github/workflows/lint-scss.yml
vendored
Normal file
26
.github/workflows/lint-scss.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
name: Lint SCSS
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- "_sass/**/*.scss"
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- "_sass/**/*.scss"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint-scss:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: lts/*
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: npm i
|
||||||
|
|
||||||
|
- name: Lint SCSS
|
||||||
|
run: npm run lint:scss
|
Loading…
x
Reference in New Issue
Block a user