Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc: Update test workflow #55

Merged
merged 1 commit into from
Nov 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 17 additions & 20 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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 ./...
Loading