From dc2b8f7c5e9415b2bafb1085a49f17d09f5fcc74 Mon Sep 17 00:00:00 2001 From: Dan Sosedoff Date: Wed, 7 Dec 2022 22:17:19 -0600 Subject: [PATCH] Switch windows tests from Appveyor to Github Actions (#611) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Run unit tests on win in gha * Decomissions appveyor 🫡 --- .github/workflows/checks.yml | 16 ++++++++++++++++ appveyor.yml | 30 ------------------------------ 2 files changed, 16 insertions(+), 30 deletions(-) delete mode 100644 appveyor.yml diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 54e4920..319c656 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -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 diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 9000665..0000000 --- a/appveyor.yml +++ /dev/null @@ -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