|
39 | 39 | run: | |
40 | 40 | for GOOS in $(go tool dist list|awk -F'/' '{print $1}'|sort -u); do |
41 | 41 | echo -e "\n\nTESTING FOR $GOOS ...\n" |
42 | | - go test -v -race ./... |
| 42 | + go test -v -race -test.short ./... |
43 | 43 | done |
44 | 44 |
|
45 | 45 | coverage: |
|
70 | 70 | path-to-profile: profile.cov |
71 | 71 | parallel: true |
72 | 72 |
|
73 | | - # build: |
74 | | - # #env: |
75 | | - # # GOPATH: ${{ github.workspace }} |
76 | | - # # GO111MODULE: off |
77 | | - # runs-on: ubuntu-latest |
78 | | - # steps: |
79 | | - # - name: Install Go |
80 | | - # uses: actions/setup-go@v2 |
81 | | - # with: |
82 | | - # go-version: 1.18.x |
83 | | - # - name: Checkout code |
84 | | - # uses: actions/checkout@v2 |
85 | | - # #with: |
86 | | - # # path: ./src/github.com/${{ github.repository }} |
87 | | - # - uses: actions/cache@v2 |
88 | | - # with: |
89 | | - # path: ~/go/pkg/mod |
90 | | - # key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} |
91 | | - # restore-keys: | |
92 | | - # ${{ runner.os }}-go- |
93 | | - # - name: Build |
94 | | - # run: | |
95 | | - # for dir in cmdr std; do |
96 | | - # for GOOS in windows linux darwin; do |
97 | | - # for GOARCH in amd64; do |
98 | | - # suf=; if [[ $GOOS == "windows" ]]; then suf=".exe"; fi |
99 | | - # go build -v -o bin/tcp-tool-$dir-$GOOS-$GOARCH$suf ./examples/$dir |
100 | | - # gzip bin/tcp-tool-$dir-$GOOS-$GOARCH$suf |
101 | | - # done |
102 | | - # done |
103 | | - # done |
104 | | - # - name: upload artifacts |
105 | | - # uses: actions/upload-artifact@master |
106 | | - # if: startsWith(github.ref, 'refs/tags/v') |
107 | | - # with: |
108 | | - # name: binaries |
109 | | - # path: bin/ |
110 | | - # |
111 | | - # - name: Upload binaries to release |
112 | | - # uses: svenstaro/upload-release-action@v2 |
113 | | - # if: startsWith(github.ref, 'refs/tags/v') |
114 | | - # with: |
115 | | - # repo_token: ${{ secrets.GITHUB_TOKEN }} |
116 | | - # file: bin/* |
117 | | - # tag: ${{ github.ref }} |
118 | | - # overwrite: true |
119 | | - # file_glob: true |
120 | | - # #body: |
121 | | - ## - name: Create Release |
122 | | - ## id: create_release |
123 | | - ## uses: actions/create-release@v1 |
124 | | - ## env: |
125 | | - ## GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
126 | | - ## with: |
127 | | - ## tag_name: ${{ github.ref }} |
128 | | - ## release_name: Release ${{ github.ref }} |
129 | | - ## draft: false |
130 | | - ## prerelease: false |
131 | | - ## - name: Upload Release Asset |
132 | | - ## id: upload-release-asset |
133 | | - ## uses: actions/upload-release-asset@v1 |
134 | | - ## env: |
135 | | - ## GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
136 | | - ## with: |
137 | | - ## upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps |
138 | | - ## asset_path: bin/* |
139 | | - ## asset_name: my-artifact.zip |
140 | | - ## asset_content_type: application/zip |
141 | | - |
142 | 73 | # notifies coveralls that all test jobs are finished |
143 | 74 | finish-coverage: |
144 | 75 | name: Finish Coverage |
|
0 commit comments