Skip to content

Update with the latest weaver version (#72) #99

Update with the latest weaver version (#72)

Update with the latest weaver version (#72) #99

Workflow file for this run

# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Build and Test
on:
push:
branches:
- 'main'
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: ["stable"]
dir: ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10"]
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.version }}
cache-dependency-path: ${{ matrix.dir }}/go.sum
- name: Install protoc
run: sudo apt install -y protobuf-compiler
- name: Install protoc-gen-go
run: go install google.golang.org/protobuf/cmd/[email protected]
- name: Install addlicense
run: go install github.com/google/[email protected]
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/[email protected]
- name: Install weaver
run: cd ${{ matrix.dir }} && go install github.com/ServiceWeaver/weaver/cmd/weaver
- name: Build and test ${{ matrix.dir }}
run: ./build_and_test.sh ${{ matrix.dir }}