Skip to content

CP-15835: chore(github): Add CODEOWNERS file #9

CP-15835: chore(github): Add CODEOWNERS file

CP-15835: chore(github): Add CODEOWNERS file #9

# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT
name: build-and-test-macos
on:
push:
branches:
- main
paths-ignore:
- '**/*.md'
- 'NOTICE'
- 'RELEASE_NOTES'
- 'THIRD-PARTY'
- 'LICENSE'
- '.github/**'
- '!.github/workflows/build-*'
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
jobs:
macos-unittest:
runs-on: macos-11
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ~1.19.2
- name: Check out code
uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: 'true'
- name: Cache build output
uses: actions/cache@v2
with:
path: |
~/Library/Caches/go-build
~/go/pkg/mod
key: v1-go-pkg-mod-${{ runner.os }}-${{ hashFiles('**/go.sum') }}
- name: Test
run: make test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
verbose: true
- name: Build
run: make build