Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
niedzielski committed Mar 23, 2024
1 parent 0765c17 commit 22f534f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: CI

on:
push:
branches: ['main']
pull_request:
branches: ['main']

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
- name: Install Dependencies
run: npm ci --no-fund
- name: Test Format
run: npm run test:format
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"build": "tsc --build && make --directory=tools --no-print-directory build",
"clean": "rm -rf dist",
"format": "npm run formatter -- --write",
"formatter": "prettier --cache --log-level warn './**/*.{css,html,json,md,ts}'",
"formatter": "prettier --cache --log-level warn './**/*.{css,html,json,md,ts,yaml}'",
"preversion": "[ -z \"$(git status -z)\" ]",
"prepublishOnly": "! git symbolic-ref --quiet HEAD || git push --follow-tags origin \"$(git branch --show-current)\"",
"start": "make --directory=tools --no-print-directory watch",
Expand Down

0 comments on commit 22f534f

Please sign in to comment.