Skip to content

Commit

Permalink
add CI run
Browse files Browse the repository at this point in the history
  • Loading branch information
phryneas committed Oct 11, 2024
1 parent 9f1799a commit 3cd4ba0
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 4 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

on:
pull_request:
push:
branches:
- '**'
tags:
- '!**'

jobs:
ci:
name: CI
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Setup Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: yarn

- name: Install dependencies
run: yarn install

- name: Run tests, lint and verify package integrity
run: yarn run validate
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@
"format": "kcd-scripts format",
"lint": "kcd-scripts lint --config .eslintrc.cjs",
"test": "kcd-scripts test --config jest.config.cjs",
"verify": "attw --pack . && publint",
"typecheck": "kcd-scripts typecheck --build",
"validate": "CI=true kcd-scripts validate verify,lint,typecheck,test"
"pack-and-verify": "attw --pack . && publint",
"typecheck": "kcd-scripts typecheck --build --noEmit",
"validate": "npm run pack-and-verify; CI=true kcd-scripts validate lint,typecheck,test"
},
"packageManager": "[email protected]",
"resolutions": {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"module": "NodeNext",
"moduleResolution": "NodeNext",
"target": "esnext",
"rootDir": "src",
"rootDir": ".",
"outDir": "dist",
"declaration": true,
"sourceMap": true,
Expand Down

0 comments on commit 3cd4ba0

Please sign in to comment.