summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorKeuin <[email protected]>2022-09-16 21:16:09 +0800
committerKeuin <[email protected]>2022-09-16 21:16:09 +0800
commite90c6173b77074d097415184568444cc16a33540 (patch)
treed4d87ffb2b807c0e2bb8c8d6409ebe169a616da4 /.github/workflows
parente36b9574037d3ddea06a65351b57840fe05bc4a8 (diff)
Auto run tests using GitHub actions when pushing or creating pull requests.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/test.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..f06242e
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,15 @@
+on: [ push, pull_request ]
+name: Test
+jobs:
+ test:
+ strategy:
+ matrix:
+ go-version: [ 1.18.x, 1.19.x ]
+ os: [ ubuntu-latest, macos-latest, windows-latest ]
+ runs-on: ${{ matrix.os }}
+ steps:
+ - uses: actions/setup-go@v3
+ with:
+ go-version: ${{ matrix.go-version }}
+ - uses: actions/checkout@v3
+ - run: go test -v ./... \ No newline at end of file