-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
200cca4
commit ec366d4
Showing
13 changed files
with
40 additions
and
62 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,63 +5,42 @@ on: | |
- main | ||
pull_request: | ||
jobs: | ||
lint_test: | ||
build-package: | ||
name: Build Package | ||
runs-on: ubuntu-latest | ||
outputs: | ||
package: ${{ steps.publish-local-package.outputs.package }} | ||
steps: | ||
- uses: tatethurston/github-actions/publish-local-package@main | ||
id: publish-local-package | ||
with: | ||
path: packages/protoscript | ||
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] | ||
version: "29.2" | ||
- uses: tatethurston/github-actions/test@main | ||
with: | ||
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 | ||
build_package: | ||
name: Build Package | ||
runs-on: ubuntu-latest | ||
outputs: | ||
package-name: package-${{ github.event.pull_request.number }} | ||
steps: | ||
- uses: tatethurston/github-actions/build@main | ||
- name: NPM Pack | ||
run: | | ||
cd packages/protoscript | ||
pnpm pack | ||
mv *.tgz protoscript.tgz | ||
- uses: actions/upload-artifact@v4 | ||
- uses: bufbuild/[email protected] | ||
- uses: tatethurston/github-actions/check-generated-files@main | ||
with: | ||
name: package-${{ github.event.pull_request.number }} | ||
path: packages/protoscript/*.tgz | ||
if-no-files-found: error | ||
retention-days: 1 | ||
overwrite: true | ||
check_windows: | ||
name: Windows CI Check | ||
cmd: pnpm regen | ||
ci-windows: | ||
name: Windows CI | ||
runs-on: windows-latest | ||
needs: build_package | ||
needs: build-package | ||
steps: | ||
- uses: arduino/setup-protoc@v2 | ||
- uses: tatethurston/github-actions/install-local-package@main | ||
with: | ||
version: "23.4" | ||
- uses: actions/download-artifact@v4 | ||
name: ${{ needs.build-package.outputs.package }} | ||
- uses: arduino/setup-protoc@v2 | ||
with: | ||
name: ${{ needs.build_package.outputs.package-name }} | ||
- uses: actions/setup-node@v3 | ||
version: "29.2" | ||
- name: Bin Check | ||
run: | | ||
npm install protoscript.tgz | ||
touch dummy.proto | ||
npx --no protoscript |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
(cd packages/protoscript && pnpm run package:build) | ||
pnpm run regen | ||
pnpm run lint:fix | ||
pnpm run typecheck |
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "protoscript", | ||
"version": "0.0.21", | ||
"version": "0.0.22", | ||
"description": "A Protobuf runtime and code generation tool for JavaScript and TypeScript", | ||
"license": "MIT", | ||
"author": "Tate <[email protected]>", | ||
|
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
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
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