github.com/goki/ki@v1.1.11/.github/workflows/ci.yml (about) 1 name: CI 2 3 on: 4 push: 5 branches: [ master ] 6 pull_request: 7 branches: [ master ] 8 9 jobs: 10 11 build: 12 name: Build 13 strategy: 14 matrix: 15 go-version: [1.18.x] 16 platform: [ubuntu-latest] # not macos-latest 17 18 runs-on: ${{ matrix.platform }} 19 steps: 20 - name: Install Go 21 uses: actions/setup-go@v2 22 with: 23 go-version: ${{ matrix.go-version }} 24 25 - name: Cache-Go 26 uses: actions/cache@v1 27 with: 28 path: | 29 ~/go/pkg/mod # Module download cache 30 ~/.cache/go-build # Build cache (Linux) 31 ~/Library/Caches/go-build # Build cache (Mac) 32 '%LocalAppData%\go-build' # Build cache (Windows) 33 34 key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} 35 restore-keys: | 36 ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} 37 38 - name: Checkout code 39 uses: actions/checkout@v2 40 41 - name: Build 42 run: | 43 make build 44 45 - name: Test 46 run: | 47 make test 48 49 - name: Upload-Coverage 50 if: matrix.platform == 'ubuntu-latest' 51 run: bash <(curl -s https://codecov.io/bash) 52