Switch windows tests from Appveyor to Github Actions (#611)
* Run unit tests on win in gha
* Decomissions appveyor 🫡
This commit is contained in:
parent
d08dbf34aa
commit
dc2b8f7c5e
16
.github/workflows/checks.yml
vendored
16
.github/workflows/checks.yml
vendored
@ -47,6 +47,22 @@ jobs:
|
|||||||
PGPASSWORD: postgres
|
PGPASSWORD: postgres
|
||||||
PGDATABASE: booktown
|
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:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
|
30
appveyor.yml
30
appveyor.yml
@ -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
|
|
Loading…
x
Reference in New Issue
Block a user