Skip to content

Commit

Permalink
Add initial GitHub Actions Build
Browse files Browse the repository at this point in the history
  • Loading branch information
suyashkumar authored Jun 13, 2024
1 parent 6f1eeec commit 473da6b
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/go_build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Copyright 2024 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: go_test
on: [push, pull_request]
jobs:

go_test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
steps:

- name: Set up Go 1.22
uses: actions/setup-go@v2
with:
go-version: 1.22
id: go

- name: Check out code
uses: actions/checkout@v3

- name: Get dependencies
run: |
go mod download
- name: Build
run: |
go build ./...
- name: Test
run: |
go test ./...

0 comments on commit 473da6b

Please sign in to comment.