]> go.fuhry.dev Git - fsnotify.git/commitdiff
introduce GitHub Actions
authorIchinose Shogo <shogo82148@gmail.com>
Sat, 31 Jul 2021 07:13:10 +0000 (16:13 +0900)
committerNathan Youngman <4566+nathany@users.noreply.github.com>
Sun, 1 Aug 2021 15:42:36 +0000 (09:42 -0600)
.github/workflows/test.yml [new file with mode: 0644]

diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644 (file)
index 0000000..26bfb94
--- /dev/null
@@ -0,0 +1,29 @@
+name: test
+on:
+  push:
+  pull_request:
+
+jobs:
+  test:
+    strategy:
+      fail-fast: false
+      matrix:
+        os:
+          - ubuntu-latest
+          - macos-latest
+          - windows-latest
+        go:
+          - '1.16'
+          - '1.15'
+    runs-on: ${{ matrix.os }}
+    steps:
+      - name: setup Go
+        uses: actions/setup-go@v2
+        with:
+          go-version: ${{ matrix.go }}
+      - name: checkout
+        uses: actions/checkout@v2
+
+      - name: test
+        run: |
+          go test --race ./...