Skip to content

Commit

Permalink
fix: add shebang (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
thesayyn authored Mar 1, 2024
1 parent 2c704ba commit 5fbd729
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 25 deletions.
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

0 comments on commit 5fbd729

Please sign in to comment.