Skip to content

Commit

Permalink
feat(ci): build & test for go.mod version
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Jun 24, 2024
1 parent ceebf93 commit 11df121
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,27 @@ name: Build and test

on:
push:
branches: [ "master" ]
branches: ["master"]
pull_request:
branches: [ "master" ]
branches: ["master"]

jobs:

build:
strategy:
matrix:
go-version: [^1, ~1.15]

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '^1'
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}

- name: Build
run: go build -v ./...
- name: Build
run: go build -v ./...

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

0 comments on commit 11df121

Please sign in to comment.