Skip to content

Improved Test Infrastructure with ARM64 Support & Enhanced CI Pipeline #2

Improved Test Infrastructure with ARM64 Support & Enhanced CI Pipeline

Improved Test Infrastructure with ARM64 Support & Enhanced CI Pipeline #2

Workflow file for this run

name: Unit Tests
on:
# Only run on PRs targeting master
pull_request:
branches: [ master ]
types: [opened, synchronize, reopened]
# For direct pushes to master only
push:
branches: [ master ]
paths-ignore:
- '**.md'
- 'docs/**'
- '.github/**'
- '!.github/workflows/unit_test.yml'
# Prevent duplicate workflow runs
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
unit-test:
name: Unit Tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
go-version: [1.21.x]
arch: [amd64, arm64]
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
cache: true
- name: Install required tools
run: |
go install github.com/golang/mock/[email protected]
- name: Generate mocks
run: |
make mock
- name: Run unit tests
run: |
make util-test
- name: Upload coverage
uses: codecov/codecov-action@v3
with:
file: ./cover.out