Skip to content

chore(deps): Bump pnpm/action-setup from 3 to 4 #232

chore(deps): Bump pnpm/action-setup from 3 to 4

chore(deps): Bump pnpm/action-setup from 3 to 4 #232

Workflow file for this run

name: 'CI'
on:
pull_request:
push:
branches:
- main
jobs:
build-test-check-and-use:
name: Build, Test, Check and Use
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up pnpm
uses: pnpm/action-setup@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
node-version-file: '.node-version'
- name: Install dependencies
run: |
pnpm install --frozen-lockfile
- name: Run all
run: |
npm run all
- name: Compare the expected and actual dist/ directories
run: |
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff
exit 1
fi
id: diff
- uses: cerbos/cerbos-setup-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
version: 'latest'
- name: Use action
uses: ./
with:
github_token: ${{ secrets.GITHUB_TOKEN }}