From 16fd8de69b4f039b703e4f043a1b07328ee15231 Mon Sep 17 00:00:00 2001 From: aki-0421 <118268728+aki-0421@users.noreply.github.com> Date: Wed, 19 Apr 2023 22:45:36 +0900 Subject: [PATCH] T: add pull request ci --- .github/workflows/pull_request.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/pull_request.yaml diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml new file mode 100644 index 0000000..1da794c --- /dev/null +++ b/.github/workflows/pull_request.yaml @@ -0,0 +1,26 @@ +name: ci + +on: + pull_request: + +jobs: + ci: + strategy: + matrix: + go-version: [ 1.18, 1.19 ] + os: [ ubuntu-latest ] + runs-on: ${{ matrix.os }} + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Golang + uses: actions/setup-go@v4 + with: + go-version: ${{ matrix.go-version }} + + - name: Test + shell: bash + run: | + export PATH=$(go env GOROOT)/misc/wasm:$PATH + GOOS=js GOARCH=wasm go test ./... \ No newline at end of file