Skip to content

Commit

Permalink
[CI] Add Prettier CI Lint (#3)
Browse files Browse the repository at this point in the history
* [CI] Add Prettier Lint
* Prettier
  • Loading branch information
MNThomson committed Nov 6, 2022
1 parent be31493 commit 176dfa7
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/lint.yml
@@ -0,0 +1,28 @@
name: Lint

on:
push:
branches:
- master
pull_request:

permissions:
contents: read
pull-requests: read

jobs:
prettier:
name: Prettier
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup nodejs
uses: actions/setup-node@v3

- name: Initialize npm
run: npm ci

- name: Run Prettier
run: npm run prettier:ci
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -12,6 +12,7 @@
"dev": "wrangler dev --local",
"deploy": "wrangler publish",
"lint": "prettier -w .",
"prettier:ci": "prettier --check .",
"pull:local": "docker pull 127.0.0.1:8787/hello-world:latest",
"pull:remote": "docker pull hello-world:latest && docker image rm hello-world:latest",
"burp": "sudo nano /etc/systemd/system/docker.service.d/http-proxy.conf && sudo systemctl daemon-reload && sudo systemctl restart docker"
Expand Down

0 comments on commit 176dfa7

Please sign in to comment.