diff --git a/.github/workflows/check-format.yml b/.github/workflows/check-format.yml new file mode 100644 index 0000000..6a779e2 --- /dev/null +++ b/.github/workflows/check-format.yml @@ -0,0 +1,24 @@ +name: check css format + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + check-format: + runs-on: ubuntu-latest + steps: + - name: checkout repository + uses: actions/checkout@v2 + - name: install node.js and npm + uses: actions/setup-node@v2 + with: + node-version: '20' + - name: install prettier + run: npm i prettier -g + - name: check format using prettier + run: prettier --check '*.css'