github.com/database64128/shadowsocks-go@v1.10.2-0.20240315062903-143a773533f1/.github/workflows/test.yml (about)

     1  name: Test
     2  
     3  on:
     4    push:
     5      branches:
     6        - '**'
     7      paths-ignore:
     8        - 'README.md'
     9        - 'LICENSE'
    10        - 'docs/**'
    11    pull_request:
    12      paths-ignore:
    13        - 'README.md'
    14        - 'LICENSE'
    15        - 'docs/**'
    16  
    17  jobs:
    18    test:
    19      name: Test
    20      strategy:
    21        matrix:
    22          os: [ubuntu-latest, windows-latest, macos-latest]
    23        fail-fast: false
    24      runs-on: ${{ matrix.os }}
    25  
    26      steps:
    27        - uses: actions/checkout@v4
    28  
    29        - name: Setup Go
    30          uses: actions/setup-go@v5
    31          with:
    32            go-version-file: go.mod
    33  
    34        - name: Build
    35          run: |
    36            go env -w GOAMD64=v3
    37            go build -v -trimpath -ldflags '-s -w' ./cmd/shadowsocks-go
    38            go build -v -trimpath -ldflags '-s -w' ./cmd/shadowsocks-go-domain-set-converter
    39  
    40        - name: Test
    41          run: go test -v ./...
    42  
    43        - name: Upload Binaries
    44          uses: actions/upload-artifact@v4
    45          with:
    46            name: shadowsocks-go-${{ github.sha }}-${{ matrix.os }}-x86-64-v3
    47            path: shadowsocks-go*