diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..55a6a1a --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,34 @@ +# 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: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.21' + cache-dependency-path: go.sum + + - name: Install Dependencies + run: | + go get . + go get github.com/davidmytton/url-verifier@v1.0.0 + + - name: Build for Linux + run: go build -v ./... + + - name: Test + run: go test -v ./... diff --git a/go.mod b/go.mod index eb05984..cd62bb0 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/kyallanum/athena/v0.1.0 -go 1.21.3 +go 1.21 require github.com/davidmytton/url-verifier v1.0.0