Skip to content

Commit

Permalink
Adds github action to build/lint
Browse files Browse the repository at this point in the history
  • Loading branch information
elijahbenizzy committed Feb 21, 2024
1 parent c9178eb commit 2c4b3a3
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/ui.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Node.js CI

on:
push:
branches:
- main
paths:
- 'telemetry/ui/**'
pull_request:
types: [opened, synchronize, reopened]
paths:
- 'telemetry/ui/**'

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: telemetry/ui
strategy:
matrix:
node-version: [15.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install --ignore-scripts
- run: npm run build
- run: npm run lint
- run: npm run format
1 change: 0 additions & 1 deletion telemetry/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"lint": "eslint .",
"lint:fix": "eslint . --fix --max-warnings=0 --config ./.eslintrc.js",
"format": "prettier --write ./**/*.{ts,tsx,css,md,json} --config ./.prettierrc.json",
"prepare": "husky install",
"precommit": "npm run lint:fix && npm run format",
"prepush": "npm run lint"
},
Expand Down

0 comments on commit 2c4b3a3

Please sign in to comment.