diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..695708b0 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,37 @@ +name: icad tests + +# Controls when the action will run. Workflow runs when manually triggered using the UI +# or API. +on: + push: + branches: + - master + pull_request: + +# This workflow makes x86_64 binaries for mac, windows, and linux. + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + arch: [amd64, arm64] + targetos: [windows, darwin, linux] + name: interchainaccount ${{ matrix.arch }} for ${{ matrix.targetos }} + steps: + - uses: actions/checkout@v3 + - name: Setup go + uses: actions/setup-go@v3 + with: + go-version: 1.18 + env: + GOOS: ${{ matrix.targetos }} + GOARCH: ${{ matrix.arch }} + + - name: run tests + run: go test ./... + + - uses: actions/upload-artifact@v2 + with: + name: icad ${{ matrix.targetos }} ${{ matrix.arch }} + path: cmd/icad/icad