github.com/database64128/shadowsocks-go@v1.7.0/.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 defaults: 26 run: 27 shell: bash 28 29 steps: 30 - uses: actions/checkout@v3 31 32 - name: Setup Go 33 uses: actions/setup-go@v4 34 with: 35 go-version-file: go.mod 36 37 - name: Build 38 run: | 39 export GOAMD64=v3 40 go build -v -trimpath -ldflags '-s -w' ./cmd/shadowsocks-go 41 go build -v -trimpath -ldflags '-s -w' ./cmd/shadowsocks-go-domain-set-converter 42 43 - name: Test 44 run: go test -v ./... 45 46 - name: Upload Binaries 47 uses: actions/upload-artifact@v3 48 with: 49 name: shadowsocks-go-${{ github.sha }}-${{ matrix.os }}-x86-64-v3 50 path: shadowsocks-go*