forked from kcl-lang/kpm
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 950 Bytes
/
test-win.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Windows Test
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
TestWindows:
name: Unit tests on Windows
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: Install Chocolatey and make
run: |
Set-ExecutionPolicy Bypass -Scope Process -Force
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install make
- run: go build ./...
- run: go vet ./...
- name: Running go tests with coverage on Windows
env:
GO111MODULE: on
run : |
make cover