Skip to content

Commit

Permalink
Merge pull request #25 from jrayback/rayback_240207_add-quality-check…
Browse files Browse the repository at this point in the history
…s-to-pr-process

Add basic quality check workflow
  • Loading branch information
jrayback authored Feb 29, 2024
2 parents 2cd7800 + bd1b8e1 commit 8adb359
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 5 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/quality-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: quality-check
run-name: ${{ github.actor }} triggered a quality check
on: [push]
jobs:
quality-check:
name: run-check for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
# Use Node 20 LTS
node-version: 'lts/Iron'
# Install dependencies
- run: npm cache clean --force
- run: npm set registry https://registry.npmjs.org/
- run: npm ci
# Run tests
- run: npm run test
# Check formatting
- run: npm run formatting
# Run linter
- run: npm run lint
# Ensure code compiles
- run: npm run build
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*.log
.DS_Store
node_modules
dist
dist
coverage
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
"version": "1.0.0",
"description": "Implement TypeScript-native CESR primitives.",
"main": "index.js",
"scripts": {
"scripts": {
"start": "ts-node index.ts",
"test": "node --test --require ts-node/register **/*.test.ts",
"lint": "eslint --ext .ts . && prettier . --check",
"fix": "eslint --ext .ts . --fix && prettier . --write",
"test": "jest",
"formatting": "prettier . --check",
"lint": "eslint --ext .ts .",
"fix-lint": "eslint --ext .ts . --fix",
"fix-formatting": "prettier . --write",
"build": "tsc"
},
"repository": {
Expand Down

0 comments on commit 8adb359

Please sign in to comment.