Fix -exports=true (#7) #42
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
name: Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- "**" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install webrpc-gen | |
run: | | |
curl -o ./webrpc-gen -fLJO https://github.com/webrpc/webrpc/releases/download/v0.18.6/webrpc-gen.linux-amd64 | |
chmod +x ./webrpc-gen | |
echo $PWD >> $GITHUB_PATH | |
# - name: Set up Go | |
# uses: actions/setup-go@v3 | |
# with: | |
# go-version: 1.19 | |
# - name: Install webrpc-gen (development) | |
# run: git clone --single-branch https://github.com/webrpc/webrpc.git --branch master && cd webrpc && make install | |
- name: Regenerate examples | |
run: cd _examples && make generate | |
- name: Git diff of regenerated files | |
run: cd _examples && make diff | |
webrpc-interoperability: | |
strategy: | |
matrix: | |
webrpc-version: [v0.10.0, v0.11.3] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Set up webrpc binary cache folder | |
uses: actions/cache@v3 | |
with: | |
key: webrpc-binaries | |
path: tests/bin | |
- name: Install dependencies | |
run: cd tests && npm install | |
- name: Download webrpc binaries | |
run: cd tests && ./download.sh ${{ matrix.webrpc-version }} bin/${{ matrix.webrpc-version }} | |
- name: Export path of webrpc binaries | |
run: cd tests && echo "$PWD/bin/${{ matrix.webrpc-version }}" >> $GITHUB_PATH | |
- name: Run interoperability tests | |
run: cd tests && ./test.sh |