-
Notifications
You must be signed in to change notification settings - Fork 37
30 lines (29 loc) · 970 Bytes
/
plugin_nodejs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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."}'