浏览代码

Some action

Piotr Czajkowski 2 年之前
父节点
当前提交
55a077bf78
共有 1 个文件被更改,包括 25 次插入0 次删除
  1. 25 0
      .github/workflows/go.yml

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

@@ -0,0 +1,25 @@
+name: Go
+
+on:
+  push:
+    branches: [ "main" ]
+  pull_request:
+    branches: [ "main" ]
+
+jobs:
+
+  build:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v3
+
+    - name: Set up Go
+      uses: actions/setup-go@v3
+      with:
+        go-version: 1.18
+
+    - name: Build
+      run: go build -v ./...
+
+    - name: Test
+      run: go test -v ./...