Skip to content

Support pkg installer for macOS #715

Support pkg installer for macOS

Support pkg installer for macOS #715

Workflow file for this run

name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
env:
ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY_ID }}
ACCESS_KEY_SECRET: ${{ secrets.ACCESS_KEY_SECRET }}
REGION_ID: ${{ secrets.REGION_ID }}
steps:
- uses: actions/checkout@v2
# fetch submodule for aliyun-openapi-meta
- run: git submodule update --init --recursive
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Build
run: make build
- name: Unit Test
run: go vet ./cli/... ./config/... ./i18n/... ./main/... ./openapi/... ./oss/... ./resource/...
- run: go test -race -coverprofile=coverage.txt -covermode=atomic ./cli/... ./config/... ./i18n/... ./meta/... ./main/... ./openapi/... ./resource/...
- name: Smoking Test
run: go run ./main/main.go
- run: test -z $ACCESS_KEY_ID -a -z $ACCESS_KEY_SECRET || bash ./integration/ecs_test
- run: bash <(curl -s https://codecov.io/bash)