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