Skip to content

Commit f4468a0

Browse files
committed
github: Fix build on Windows
1 parent 682c3f6 commit f4468a0

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,17 @@ jobs:
1010
test:
1111
strategy:
1212
matrix:
13-
go-version: [1.19.x, 1.20.x]
13+
go-version: [1.20.x]
1414
os: [ubuntu-latest, macos-latest, windows-latest]
1515
runs-on: ${{ matrix.os }}
1616
steps:
1717
- name: Install Go
1818
uses: actions/setup-go@v3
1919
with:
2020
go-version: ${{ matrix.go-version }}
21+
- if: matrix.os == 'windows-latest'
22+
run: |
23+
Choco-Install -PackageName mingw -ArgumentList "--version","10.2.0","--allow-downgrade"
2124
- name: Install staticcheck
2225
if: matrix.platform != 'windows-latest'
2326
run: go install honnef.co/go/tools/cmd/staticcheck@latest
@@ -35,11 +38,4 @@ jobs:
3538
if: matrix.os != 'windows-latest'
3639
run: staticcheck ./...
3740
- name: Test
38-
run: go test -race ./libsass -coverprofile=coverage.txt -covermode=atomic
39-
- name: Upload coverage
40-
if: success() && matrix.os == 'ubuntu-latest'
41-
run: |
42-
curl -s https://codecov.io/bash | bash
43-
env:
44-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
45-
shell: bash
41+
run: go test -race ./libsass

0 commit comments

Comments
 (0)