Skip to content

Add action for syncing the upstream fork #1

Add action for syncing the upstream fork

Add action for syncing the upstream fork #1

Workflow file for this run

name: Run Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: ^1.18
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.46
- name: Get go dependencies
run: |
go get
- name: Get node dependencies
run: |
cd integration_tests && npm install
- name: Run unit test
run: |
make testdata
go test ./...
- name: Run integration tests
run: |
cd integration_tests
./scripts/test-ci.sh
# goreleaser:
# runs-on: ubuntu-latest
# needs: [test]
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# with:
# fetch-depth: 0
# - name: Set up Go
# uses: actions/setup-go@v3
# with:
# go-version: 1.18
# - name: Run GoReleaser
# uses: goreleaser/goreleaser-action@v2
# if: startsWith(github.ref, 'refs/tags/')
# with:
# version: latest
# args: release --rm-dist
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}