OSDN Git Service

update action
authorChengcheng Zhang <943420582@qq.com>
Mon, 9 Dec 2019 02:10:14 +0000 (10:10 +0800)
committerChengcheng Zhang <943420582@qq.com>
Mon, 9 Dec 2019 02:10:14 +0000 (10:10 +0800)
.github/workflows/go.yml [new file with mode: 0644]

diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
new file mode 100644 (file)
index 0000000..8468611
--- /dev/null
@@ -0,0 +1,18 @@
+on: [push, pull_request]
+name: Test
+jobs:
+  test:
+    strategy:
+      matrix:
+        go-version: [1.12.x, 1.13.x]
+        platform: [ubuntu-latest, macos-latest, windows-latest]
+    runs-on: ${{ matrix.platform }}
+    steps:
+    - name: Install Go
+      uses: actions/setup-go@v1
+      with:
+        go-version: ${{ matrix.go-version }}
+    - name: Checkout code
+      uses: actions/checkout@v1
+    - name: Test
+      run: go test ./...
\ No newline at end of file