Skip to content

Commit

Permalink
Added build for Go Package
Browse files Browse the repository at this point in the history
  • Loading branch information
im-deviprakash committed Jan 23, 2024
1 parent 5c08d5d commit 46052ae
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Go

on: [push,pull_request]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.19', '1.20', '1.21.x' ]

steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}

- name: Display Go version
run: go version

- name: Install dependencies
run: |
go mod download github.com/ingrammicro-xvantage/xi-sdk-resellers-go
go get golang.org/x/oauth2
go get .
- name: Build
run: go build -v ./...
5 changes: 3 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
module github.com/GIT_USER_ID/GIT_REPO_ID
module github.com/ingrammicro-xvantage/xi-sdk-resellers-go


go 1.18

require (
golang.org/x/oauth2 v0.0.0-20210323180902-22b0adad7558
)
go 1.18

0 comments on commit 46052ae

Please sign in to comment.