github.com/tensorleap/oras-go@v1.2.5/.github/workflows/build-pr.yml (about) 1 name: build-pr 2 3 on: 4 pull_request: 5 branches: 6 - v1 7 8 jobs: 9 build: 10 runs-on: ubuntu-latest 11 steps: 12 - name: Checkout 13 uses: actions/checkout@v2 14 - name: setup go environment 15 uses: actions/setup-go@v1 16 with: 17 go-version: '1.18.9' 18 - name: run unit tests 19 run: make test 20 - name: run acceptance tests 21 run: | 22 export LOCAL_REGISTRY_HOSTNAME="$(hostname -I | awk '{print $1}')" 23 make acceptance 24 - name: upload coverage report 25 uses: actions/upload-artifact@master 26 with: 27 name: oras-coverage-report-${{ github.sha }} 28 path: .cover/ 29 if: always()