Skip to content

Commit

Permalink
test: add windows build test
Browse files Browse the repository at this point in the history
test: fix typo
  • Loading branch information
andyzhangx committed Apr 29, 2023
1 parent 3bea767 commit 6679d49
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push: {}

jobs:

build:
name: Build
runs-on: ubuntu-latest
Expand All @@ -19,6 +18,10 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Unit Test
- name: Unit test
run: |
go test -v -race ./iscsi/...
- name: Build test
run: |
go build -a -mod vendor -o example/example ./example
22 changes: 22 additions & 0 deletions .github/workflows/windows.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Windows Tests
on:
pull_request: {}
push: {}
jobs:
build:
strategy:
matrix:
go-versions: [1.19.x]
platform: [windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.19
id: go
- name: Checkout code
uses: actions/checkout@v2
- name: Build Test
run: |
go build -a -o example/example.exe ./example

0 comments on commit 6679d49

Please sign in to comment.