ci: update to go 1.20 #8
Workflow file for this run
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: 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."}' |