Skip to content

Commit

Permalink
Add CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DemianParkhomenko committed Sep 7, 2023
1 parent a34ea65 commit 8ca6ae1
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- '**'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
- run: npm ci
- run: npm run format:check
- run: npm run lint:check
- run: npm run test
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
"main": "index.js",
"scripts": {
"start": "node index.js",
"test": "echo \": no test specified\"",
"test": "echo no test specified",
"lint:check": "eslint .",
"lint:write": "eslint --fix .",
"format:check": "prettier --check .",
"format:write": "prettier --write .",
"prepare": "husky install"
},
"lint-staged": {
Expand Down

0 comments on commit 8ca6ae1

Please sign in to comment.