Skip to content

Commit

Permalink
fix test and go build
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-Nava authored May 9, 2023
1 parent 6cb6d56 commit 12b6a46
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Go
name: Go Test workflow
on: [push]

jobs:
Expand All @@ -10,7 +10,8 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.16.x'
go-version: [ '1.16.x', '1.17.x', '1.18.x', '1.19.x' ]
#
- name: Install dependencies
run: go get .
- name: Build
Expand Down
15 changes: 6 additions & 9 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
name: Go

name: Go Build
#
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

#
jobs:

build:
runs-on: ubuntu-latest
steps:
Expand All @@ -16,10 +15,8 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18

go-version: [ '1.16.x', '1.17.x', '1.18.x', '1.19.x' ]
#
- name: Build
run: go build -v ./...

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

0 comments on commit 12b6a46

Please sign in to comment.