Skip to content

Commit

Permalink
Merge pull request #2 from Jefftree/gh-actions
Browse files Browse the repository at this point in the history
Add Github Actions
  • Loading branch information
timburks authored Aug 4, 2023
2 parents 2063bfc + 94e1c83 commit f1b8172
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Go

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:

build:
name: Build
runs-on: ubuntu-22.04
steps:

- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.13

- name: Check out code into the Go module directory
uses: actions/checkout@v2

# not sure if this part is necessary for the current repo
- name: Get protoc
run: |
sudo curl -L https://github.com/protocolbuffers/protobuf/releases/download/v3.15.0/protoc-3.15.0-linux-x86_64.zip > /tmp/protoc.zip
sudo unzip /tmp/protoc.zip -d /usr/local
sudo chown -R $USER /usr/local
- name: Get dependencies
run: go get -v -t -d ./...

- name: Build
run: make all

- name: Test
run: go test ./... -v

0 comments on commit f1b8172

Please sign in to comment.