Skip to content

deps(ci): update actions to v4 and node to 20 #235

deps(ci): update actions to v4 and node to 20

deps(ci): update actions to v4 and node to 20 #235

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
NODE_VERSION: 20
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: prettier --version
uses: ./
with:
args: --version
- name: prettier --help
uses: ./
with:
args: --help
- name: prettier --check .
uses: ./
with:
args: --check .
- name: prettier --write .
uses: ./
with:
args: --write .
verify-output:
name: Verify output
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: yarn
- run: yarn install --frozen-lockfile
- name: Rebuild output
run: yarn build -o dist-ci
- name: Verify output
run: diff -qr dist dist-ci