Added eventqueue package #202
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ------------------------------------------------------------ | |
# Copyright (c) Microsoft Corporation and Dapr Contributors. | |
# Licensed under the MIT License. | |
# ------------------------------------------------------------ | |
name: kit | |
on: | |
push: | |
branches: | |
- main | |
- release-* | |
tags: | |
- v* | |
pull_request: | |
branches: | |
- main | |
- release-* | |
jobs: | |
build: | |
name: Build ${{ matrix.target_os }}_${{ matrix.target_arch }} binaries | |
runs-on: ${{ matrix.os }} | |
env: | |
GOVER: "1.20" | |
GOOS: ${{ matrix.target_os }} | |
GOARCH: ${{ matrix.target_arch }} | |
GOPROXY: https://proxy.golang.org | |
GOLANGCI_LINT_VER: v1.51.2 | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
target_arch: [arm, amd64] | |
include: | |
- os: ubuntu-latest | |
target_os: linux | |
- os: windows-latest | |
target_os: windows | |
- os: macOS-latest | |
target_os: darwin | |
exclude: | |
- os: windows-latest | |
target_arch: arm | |
- os: macOS-latest | |
target_arch: arm | |
steps: | |
- name: Set up Go ${{ env.GOVER }} | |
uses: actions/setup-go@v1 | |
with: | |
go-version: ${{ env.GOVER }} | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
- name: Run golangci-lint | |
if: matrix.target_arch == 'amd64' && matrix.target_os == 'linux' | |
uses: golangci/[email protected] | |
with: | |
version: ${{ env.GOLANGCI_LINT_VER }} | |
skip-cache: true | |
- name: Run make go.mod check-diff | |
if: matrix.target_arch != 'arm' | |
run: make go.mod check-diff | |
- name: Run make test | |
env: | |
COVERAGE_OPTS: "-coverprofile=coverage.txt -covermode=atomic" | |
if: matrix.target_arch != 'arm' | |
run: make test | |
- name: Codecov | |
if: matrix.target_arch == 'amd64' && matrix.target_os == 'linux' | |
uses: codecov/codecov-action@v1 |