Skip to content

Commit

Permalink
Merge pull request #34 from Cistern/preetam/go-mod
Browse files Browse the repository at this point in the history
chore: add go.mod
  • Loading branch information
Preetam authored Jun 21, 2024
2 parents bdf9dd4 + 52842b3 commit 912a0ce
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,21 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: Go

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

jobs:

build:
test:
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.20'
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20"

- name: Test
run: go test -v ./...
- name: Test
run: go test -v ./...
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/Cistern/sflow

go 1.21

0 comments on commit 912a0ce

Please sign in to comment.