Skip to content

Commit

Permalink
Create Workflow (#3)
Browse files Browse the repository at this point in the history
* Create go.yml

Signed-off-by: Kyal Lanum <[email protected]>
  • Loading branch information
kyallanum authored Dec 29, 2023
1 parent 7db8a78 commit 61ebae6
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
- name: Build for Linux
run: go build -v ./...

- name: Test
run: go test -v ./...
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 61ebae6

Please sign in to comment.