Skip to content

ci: more test debugging #14

ci: more test debugging

ci: more test debugging #14

Workflow file for this run

name: Node JS Plugin Test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
env:
GOPATH: ${{ github.workspace }}
GOBIN: ${{ github.workspace }}/bin
GO111MODULE: "on"
defaults:
run:
working-directory: ${{ env.GOPATH }}/src/github.com/nilslice/protolock
name: plugin_nodejs
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
path: ${{ env.GOPATH }}/src/github.com/nilslice/protolock
- name: Set Up Node
uses: actions/setup-node@v4
with:
node-version: 8
- name: "Run test"
run: |
set +o pipefail
cd plugin-samples/plugin-sample-js/
WARNINGS=$(node main.js < example.data.json)
echo $WARNINGS | grep '{"filepath":"path/to/file.proto","message":"Something bad happened."}'
echo $WARNINGS | grep '{"filepath":"path/to/another.proto","message":"Something else bad happened."}'