Skip to content

test: add windows/macosx/linux into github actions #945

test: add windows/macosx/linux into github actions

test: add windows/macosx/linux into github actions #945

Workflow file for this run

name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-12, windows-latest]
runs-on: ${{ matrix.os }}
# environment: CI
env:
ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY_ID }}
ACCESS_KEY_SECRET: ${{ secrets.ACCESS_KEY_SECRET }}
REGION_ID: ${{ secrets.REGION_ID }}
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: "1.20"
- name: Unit Test
run: make test
- name: Upload coverage infomartion
run: bash <(curl -s https://codecov.io/bash)
- name: Smoking Test
run: go run ./main/main.go
- run: make build
- name: Install jq
uses: dcarbone/[email protected]
if: matrix.os == 'windows-latest'
- run: test -z $ACCESS_KEY_ID -a -z $ACCESS_KEY_SECRET || bash ./integration/ecs_test.sh
- run: test -z $ACCESS_KEY_ID -a -z $ACCESS_KEY_SECRET || bash ./integration/oss_test.sh