Skip to content

Commit

Permalink
Add simple CI setup
Browse files Browse the repository at this point in the history
  • Loading branch information
rmehner committed Apr 10, 2022
1 parent ddb70f5 commit 5176013
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/proud-pets-check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"bits-to-dead-trees": patch
---

Add CI setup
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI

on: push

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: lts/*
cache: npm

- name: Run eslint
run: npm run lint

- name: Run prettier
run: npm run check-format
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
},
"main": "dist/index.js",
"scripts": {
"check-format": "prettier --check 'src/**/*.ts'",
"clean": "rimraf dist",
"lint": "eslint src/*.ts",
"format": "prettier --write src/**/*.{ts,json}",
Expand Down

0 comments on commit 5176013

Please sign in to comment.