From d5dd65cfe89a5fe5d97336e5dcabaf597f0ae81f Mon Sep 17 00:00:00 2001 From: Andrew Keesler Date: Tue, 27 Oct 2020 18:00:54 -0400 Subject: [PATCH] So...does this macos-unit-tests workflow work? Signed-off-by: Andrew Keesler --- .github/workflows/unit-tests.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/unit-tests.yml diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml new file mode 100644 index 00000000..4bbfa273 --- /dev/null +++ b/.github/workflows/unit-tests.yml @@ -0,0 +1,25 @@ +name: unit-tests +on: workflow_dispatch +jobs: + macos-unit-tests: + name: macOS Unit Tests + runs-on: macos-latest + steps: + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: ^1.15 + id: go + - name: Checkout + uses: actions/checkout@v2 + - name: Cache Dependencies + uses: actions/cache@v2 + with: + path: ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- + - name: Build + run: go build -v ./... + - name: Test + run: go test -short -race -v ./...