-
Notifications
You must be signed in to change notification settings - Fork 28
49 lines (40 loc) · 1.48 KB
/
pr-validation.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: PR Validation
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
paths-ignore: [ '**.md' ]
pull_request:
branches: [ "main" ]
paths-ignore: [ '**.md' ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.21.x', '1.20.x', '1.19.x' ]
steps:
# Checks-out your repository under $GITHUB_WORKSPACE
- uses: actions/checkout@v3
with:
fetch-depth: 1
submodules: true
- name: Setup Go environment
uses: actions/setup-go@v3.3.0
with:
go-version: ${{ matrix.go-version }}
- name: Install dependencies
run: go get .
- name: Installing protoc-gen-go
run: |
go get google.golang.org/protobuf/cmd/protoc-gen-go@v1.28
go get google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2
- name: Generate grpc code
run: protoc --go_out=. --go-grpc_out=. -I submodules/durabletask-protobuf/protos orchestrator_service.proto
- name: Run integration tests
run: go test ./tests/... -coverpkg ./api,./task,./client,./backend/...,./internal/helpers