From e90c6173b77074d097415184568444cc16a33540 Mon Sep 17 00:00:00 2001 From: Keuin Date: Fri, 16 Sep 2022 21:16:09 +0800 Subject: Auto run tests using GitHub actions when pushing or creating pull requests. --- .github/workflows/test.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/test.yml 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 -- cgit v1.2.3