github.com/nyan233/littlerpc@v0.4.6-0.20230316182519-0c8d5c48abaf/.github/workflows/ci.yml (about)

     1  name: Ci
     2  
     3  on:
     4    push:
     5      branches: [ main ]
     6    pull_request:
     7      branches: [ main ]
     8  
     9  jobs:
    10    mutli-system-test:
    11      strategy:
    12        matrix:
    13          os: [ubuntu-latest,macos-latest,windows-latest]
    14          go_version: ["1.19"]
    15      runs-on: ${{matrix.os}}
    16      steps:
    17      - name: Install Go
    18        uses: actions/setup-go@v2
    19        with:
    20          go-version: ${{matrix.go_version}}
    21      - name: CheckOut Code
    22        uses: actions/checkout@v2
    23      - name: Init Environment
    24        if: matrix.os == 'macos-latest'
    25        run:
    26          bash ./macos_init.sh
    27      - name: Test
    28        run:  make cover-test
    29      - name: Upload coverage to Codecov
    30        if: matrix.os != 'windows-latest'
    31        run: bash <(curl -s https://codecov.io/bash)
    32      - name: Upload coverage to Codecov On Windows
    33        if: matrix.os == 'windows-latest'
    34        run:
    35          $ProgressPreference = 'SilentlyContinue' ;
    36          Invoke-WebRequest -Uri https://uploader.codecov.io/latest/windows/codecov.exe -Outfile codecov.exe ; 
    37          .\codecov.exe