Bump prettier from 3.3.0 to 3.3.1 #533
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push] | |
name: build | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: ["20.x", "21.x"] | |
name: Node.js ${{ matrix.node }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node.js ${{ matrix.node }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install dependencies | |
run: | | |
npm ci | |
node ./node_modules/elm/install.js | |
- name: Audit signatures | |
run: npm audit signatures | |
- name: Generate intermediate files | |
run: | | |
# By compiling both `Main.elm` and `Worker.elm`, we make sure all | |
# intermediate files are present before the next steps run. | |
# | |
# Otherwise, parcel would compile both files in parallel which can | |
# lead to data races and let one of the compiler processes fail with | |
# an error about corrupt files. | |
npx elm make app/elm/Main.elm --output /dev/null | |
npx elm make app/elm/Worker.elm --output /dev/null | |
- name: Run tests | |
run: npm test | |
- name: Build assets | |
run: npm run prod | |
- name: Check formatting | |
run: | | |
npx elm-format --validate app/elm tests | |
npx prettier --check "app/js/*.js" |