Skip to content

Commit

Permalink
fix: executable issue on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
thesayyn committed Dec 1, 2021
1 parent ec62253 commit 36727ad
Show file tree
Hide file tree
Showing 11 changed files with 275 additions and 211 deletions.
21 changes: 5 additions & 16 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,11 @@ on:
paths-ignore:
- '**.md'
jobs:
test-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Setup node 12
uses: actions/setup-node@v2
with:
node-version: 14.x
- shell: bash
run: yarn test
- shell: bash
run: cd examples/pure && yarn --frozen-lockfile && yarn test
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -37,7 +23,10 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: 14.x
- name: Install Protoc
uses: arduino/setup-protoc@v1

- run: yarn --frozen-lockfile
- run: yarn codegen
- run: yarn test
- run: yarn test --test_tag_filters=-no-${{ matrix.os }}
- run: cd examples/pure && yarn --frozen-lockfile && yarn test
8 changes: 4 additions & 4 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ yarn_install(
# Setup Protocol Buffers toolchain
http_archive(
name = "rules_proto",
sha256 = "8e7d59a5b12b233be5652e3d29f42fba01c7cbab09f6b3a8d0a57ed6d1e9a0da",
strip_prefix = "rules_proto-7e4afce6fe62dbff0a4a03450143146f9f2d7488",
sha256 = "66bfdf8782796239d3875d37e7de19b1d94301e8972b3cbd2446b332429b4df1",
strip_prefix = "rules_proto-4.0.0",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/7e4afce6fe62dbff0a4a03450143146f9f2d7488.tar.gz",
"https://github.com/bazelbuild/rules_proto/archive/7e4afce6fe62dbff0a4a03450143146f9f2d7488.tar.gz",
"https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/refs/tags/4.0.0.tar.gz",
"https://github.com/bazelbuild/rules_proto/archive/refs/tags/4.0.0.tar.gz",
],
)

Expand Down
1 change: 0 additions & 1 deletion examples/pure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "example",
"scripts": {
"preinstall": "cd ../.. && yarn bazel build :package",
"postinstall": "./scripts/download_protoc.sh",
"test": "protoc -I=src --ts_out=src test.proto && tsc && node ./dist/index"
},
"dependencies": {
Expand Down
18 changes: 0 additions & 18 deletions examples/pure/scripts/download_protoc.sh

This file was deleted.

53 changes: 0 additions & 53 deletions examples/pure/scripts/pick_asset.js

This file was deleted.

Loading

0 comments on commit 36727ad

Please sign in to comment.