Skip to content

Separate Shared Components #134

Separate Shared Components

Separate Shared Components #134

# Copyright (C) 2023, Ava Labs, Inc. All rights reserved.
# See the file LICENSE for licensing terms.
name: HyperSDK Unit Tests
on:
push:
branches:
- main
pull_request:
types: [labeled,synchronize,reopened]
jobs:
hypersdk-unit-tests:
if: ${{ github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'run unit') }}
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
check-latest: true
cache: true
- name: Run unit tests
shell: bash
run: scripts/tests.unit.sh
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true