Switch windows tests from Appveyor to Github Actions (#611)

* Run unit tests on win in gha
* Decomissions appveyor 🫡
This commit is contained in:
Dan Sosedoff 2022-12-07 22:17:19 -06:00 committed by GitHub
parent d08dbf34aa
commit dc2b8f7c5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 30 deletions

View File

@ -47,6 +47,22 @@ jobs:
PGPASSWORD: postgres
PGDATABASE: booktown
tests-windows:
runs-on: windows-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- run: go mod download
- run: make test
env:
CGO_ENABLED: 1
lint:
runs-on: ubuntu-latest
timeout-minutes: 10

View File

@ -1,30 +0,0 @@
clone_folder: c:\gopath\src\github.com\sosedoff\pgweb
environment:
GOPATH: c:\gopath
GOROOT: c:\goroot119\go
GOTOOLDIR: c:\goroot119\go\pkg\tool\windows_amd64
CGO_ENABLED: 0
services:
- postgresql
install:
- ps: mkdir c:\goroot119
- ps: iwr -outf c:\goroot119\go1.19.windows-amd64.zip https://golang.org/dl/go1.19.windows-amd64.zip
- ps: Expand-Archive c:\goroot119\go1.19.windows-amd64.zip -DestinationPath c:\goroot119
- set PATH=%GOPATH%\bin;%PATH%
- set PATH=%GOROOT%\bin;%PATH%
- echo %PATH%
- echo %GOPATH%
- cd %APPVEYOR_BUILD_FOLDER%
- go env
- go version
build_script:
- go build
test_script:
- go test -cover ./...
deploy: false