Skip to content

Commit

Permalink
Update deps and simplify CI settings (#19)
Browse files Browse the repository at this point in the history
This change is for housekeeping and does not affect the run-time code.
  • Loading branch information
ybiquitous committed Nov 14, 2022
1 parent 8804dbe commit 86caa25
Show file tree
Hide file tree
Showing 4 changed files with 9,032 additions and 1,346 deletions.
32 changes: 2 additions & 30 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,11 @@ name: CI
on:
push:
branches:
- master
- 'dependabot/**'
- main
pull_request:
branches:
- '**'

env:
CI: true

jobs:
lint:
name: Lint on Node.js ${{ matrix.node }} and ${{ matrix.os }}

runs-on: ${{ matrix.os }}

strategy:
matrix:
node: [12]
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- name: Install latest npm
run: npm install --global npm@latest

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint
uses: stylelint/.github/.github/workflows/lint.yml@main
6 changes: 6 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env sh
[ -n "$CI" ] && exit 0

. "$(dirname -- "$0")/_/husky.sh"

npx --no-install lint-staged
Loading

0 comments on commit 86caa25

Please sign in to comment.