diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index fda7275..179cea1 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,10 +1,9 @@ on: pull_request: - branches: [main] + branches: [main] name: test env: - GO111MODULE: on - GOPROXY: https://proxy.golang.org + HVM_GITHUBTOKEN: ${{ secrets.HVM_GITHUBTOKEN }} permissions: contents: read jobs: @@ -15,20 +14,18 @@ jobs: os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - - name: Checkout code - uses: actions/checkout@v3 - - name: Install Go - uses: actions/setup-go@v4 - with: - go-version: ${{ matrix.go-version }} - check-latest: true - cache: true - cache-dependency-path: | - **/go.sum - **/go.mod - - name: Install hvm - run: go install - - name: Test - env: - HVM_GITHUBTOKEN: ${{ secrets.HVM_GITHUBTOKEN }} - run: go test ./... + - name: Checkout code + uses: actions/checkout@v3 + - name: Install Go + uses: actions/setup-go@v4 + with: + go-version: ${{ matrix.go-version }} + check-latest: true + cache: true + cache-dependency-path: | + **/go.sum + **/go.mod + - name: Install hvm + run: go install + - name: Test + run: go test ./...