Skip to content

update to protoscript 0.0.20 #512

update to protoscript 0.0.20

update to protoscript 0.0.20 #512

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
ci:
name: "Lint and Test"
runs-on: ubuntu-latest
steps:
# Install protoc for e2e:setup
- uses: arduino/setup-protoc@v2
with:
version: "23.4"
- uses: bufbuild/[email protected]
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: (cd packages/twirpscript && pnpm package:build)
# run again to link bin that is now available after package:build
- run: pnpm install --frozen-lockfile
- run: pnpm lint
- run: pnpm test:ci && pnpm codecov --token=$CODECOV_TOKEN
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Check for uncommited changes to generated files
run: |
pnpm regen
if git diff --quiet; then
echo "No changes detected."
else
echo "Changes detected:"
git diff --name-only
git diff
echo "Failing build."
exit 1
fi