From 765ee3a606574f75cf6222f23ea1a78f51fac7ec Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Mon, 13 Nov 2023 08:12:09 -0800 Subject: [PATCH] misc: Update test workflow --- .github/workflows/test.yaml | 37 +++++++++++++++++-------------------- 1 file changed, 17 insertions(+), 20 deletions(-) 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 ./...