action: clang format

This commit is contained in:
YiFang Xiao 2023-07-19 21:13:40 +08:00
parent fc1b01bd6e
commit f97bfc039f

View file

@ -21,8 +21,8 @@ jobs:
- uses: actions/checkout@v3.5.2 - uses: actions/checkout@v3.5.2
with: with:
# check out HEAD on the branch # check out HEAD on the branch
ref: ${{ github.head_ref }} # ref: ${{ github.head_ref }}
repository: ${{github.event.pull_request.head.repo.full_name}} # repository: ${{github.event.pull_request.head.repo.full_name}}
# make sure the parent commit is grabbed as well, because # make sure the parent commit is grabbed as well, because
# that's what will get formatted (i.e. the most recent commit) # that's what will get formatted (i.e. the most recent commit)
fetch-depth: 2 fetch-depth: 2
@ -50,8 +50,7 @@ jobs:
with: with:
node-version: 16 node-version: 16
- run: | - run: npm ci
npm ci
- run: npx prettier --write src/stylesheets src/scripts/gd-*.js - run: npx prettier --write src/stylesheets src/scripts/gd-*.js
# Optimize all PNGs with https://pngquant.org/ # Optimize all PNGs with https://pngquant.org/
# - run: sudo apt-get update && sudo apt-get install -y pngquant # - run: sudo apt-get update && sudo apt-get install -y pngquant