Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
ci tests (#146)
Browse files Browse the repository at this point in the history
* add a test.yml to run tests

* tests
  • Loading branch information
faddat authored Nov 15, 2022
1 parent 0dc3c1d commit 182d728
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 182d728

Please sign in to comment.