From 5c5b7d1d9858aa6ab58536f64b3faf67846f9d55 Mon Sep 17 00:00:00 2001
From: Shannon <spekary@gmail.com>
Date: Mon, 14 Mar 2022 23:45:36 -0700
Subject: [PATCH] Create go.yml

---
 .github/workflows/go.yml | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 .github/workflows/go.yml

diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
new file mode 100644
index 0000000..b9744f0
--- /dev/null
+++ b/.github/workflows/go.yml
@@ -0,0 +1,26 @@
+name: Go
+
+on:
+  push:
+    branches: [ main ]
+  pull_request:
+    branches: [ main ]
+  workflow_dispatch:
+
+jobs:
+
+  build:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v2
+
+    - name: Set up Go
+      uses: actions/setup-go@v2
+      with:
+        go-version: 1.17
+
+    - name: Test
+      run: go test -v -cover ./... -coverprofile coverage.out -coverpkg ./...
+      
+    - name: Upload coverage to Codecov
+      run: bash <(curl -s https://codecov.io/bash)