Skip to content

Commit

Permalink
ci: add check workflow (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
capitnflam authored Mar 15, 2024
1 parent 4424b67 commit 8afc82a
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
- package-ecosystem: 'npm' # See documentation for possible values
directory: '/' # Location of package manifests
schedule:
interval: "monthly"
- package-ecosystem: "github-actions"
directory: "/"
interval: 'monthly'
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: "monthly"
interval: 'monthly'
32 changes: 32 additions & 0 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: PR Check

on:
push:
branches-ignore:
- main

jobs:
pr-check:
name: PR Check
runs-on: ubuntu-latest
env:
HUSKY: 0
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Type check
run: npm run type-check
- name: Build
run: npm run build
# - name: Test
# run: npm run test
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"lint": "prettier --check .",
"pre-commit": "lint-staged",
"prepare": "husky",
"semantic-release": "semantic-release"
"semantic-release": "semantic-release",
"type-check": "tsc --pretty --noEmit"
},
"bugs": "https://github.com/capitnflam/eslint-plugin/issues",
"dependencies": {
Expand Down

0 comments on commit 8afc82a

Please sign in to comment.