Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add shebang #259

Merged
merged 2 commits into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 19 additions & 16 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,33 @@ on:
- '**.md'
push:
branches:
- master
- main
paths-ignore:
- '**.md'
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node_version: [14.x, 16.x]
protoc_version: [3.x]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-node@v2
with:
node-version: ${{matrix.node_version}}
- uses: arduino/setup-protoc@v1
with:
version: ${{matrix.protoc_version}}
version: "3.x"
repo-token: ${{ secrets.GITHUB_TOKEN }}

- run: yarn --frozen-lockfile
- run: yarn codegen
- run: yarn test --test_tag_filters=-no-${{ matrix.os }}
- run: cd examples/pure && yarn --frozen-lockfile && yarn test

- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
registry-url: "https://npm.pkg.github.com"
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: jetli/[email protected]
- uses: Swatinem/rust-cache@v2
- name: Install and run cargo-patch
run: |
cargo install cargo-patch
cargo-patch
- name: compile
run: ./infra/compile.sh
14 changes: 7 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,14 @@ serde_json = "1.0.96"
[dev-dependencies]
glob = "0.3.1"
cfg-if = "1.0.0"
protobuf-parse = "3.3.0"
protobuf-parse = "=3.4.0"
pretty_assertions_sorted = "1.2.3"

[patch.crates-io]
protobuf-parse = { path = './target/patch/protobuf-parse-3.3.0' }
protobuf-parse = { path = './target/patch/protobuf-parse-3.4.0' }

[package.metadata.patch.protobuf-parse]
version = "3.4.0"
patches = [
{ path = "./patches/pure_mod.patch", source = "GithubPrDiff" },
]
1 change: 1 addition & 0 deletions js/plugin/main.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env node
const fs = require("fs");
const plugin = require("./dist/plugin.js");

Expand Down
Loading