瀏覽代碼

Let's add action

Piotr Czajkowski 4 年之前
父節點
當前提交
a9e450c5ad
共有 1 個文件被更改,包括 29 次插入0 次删除
  1. 29 0
      .github/workflows/go.yml

+ 29 - 0
.github/workflows/go.yml

@@ -0,0 +1,29 @@
+name: Go
+
+on:
+  push:
+    branches: [ master ]
+  pull_request:
+    branches: [ master ]
+
+jobs:
+
+  build:
+    name: Build
+    runs-on: ubuntu-latest
+    steps:
+
+    - name: Set up Go 1.x
+      uses: actions/setup-go@v2
+      with:
+        go-version: ^1.13
+      id: go
+
+    - name: Check out code into the Go module directory
+      uses: actions/checkout@v2
+
+    - name: Build
+      run: go build -v .
+
+    - name: Test
+      run: go test -v .