mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 01:15:43 +03:00
After changes introduced in #23284 we no longer need to make a if !st.SupportsNUMA() check in the GetNodes() topology method. In fact this check will now cause panic in nomadTopologyToProto method on systems that don't support NUMA.
100 lines
2.7 KiB
YAML
100 lines
2.7 KiB
YAML
name: test-windows
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- release/**
|
|
paths-ignore:
|
|
- 'README.md'
|
|
- 'CHANGELOG.md'
|
|
- '.changelog/**'
|
|
- '.tours/**'
|
|
- 'contributing/**'
|
|
- 'demo/**'
|
|
- 'dev/**'
|
|
- 'e2e/**'
|
|
- 'integrations/**'
|
|
- 'pkg/**'
|
|
- 'scripts/**'
|
|
- 'terraform/**'
|
|
- 'ui/**'
|
|
- 'website/**'
|
|
push:
|
|
branches:
|
|
- main
|
|
- release/**
|
|
paths-ignore:
|
|
- 'README.md'
|
|
- 'CHANGELOG.md'
|
|
- '.changelog/**'
|
|
- '.tours/**'
|
|
- 'contributing/**'
|
|
- 'demo/**'
|
|
- 'dev/**'
|
|
- 'e2e/**'
|
|
- 'integrations/**'
|
|
- 'pkg/**'
|
|
- 'scripts/**'
|
|
- 'terraform/**'
|
|
- 'ui/**'
|
|
- 'website/**'
|
|
|
|
env:
|
|
VAULT_VERSION: 1.4.1
|
|
jobs:
|
|
test-windows:
|
|
runs-on: 'windows-2019-16core'
|
|
env:
|
|
GOTESTSUM_PATH: c:\tmp\test-reports
|
|
steps:
|
|
- name: Docker Info
|
|
run: docker version
|
|
- run: git config --global core.autocrlf false
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
|
- name: Setup go
|
|
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
|
|
with:
|
|
go-version-file: ".go-version"
|
|
- name: Show installed Go version
|
|
shell: bash
|
|
run: |-
|
|
export PATH=/c/go/bin:/c/gopath/bin:$PATH
|
|
go version
|
|
- uses: "./.github/actions/install-vault"
|
|
with:
|
|
version: "$VAULT_VERSION"
|
|
- run: vault version
|
|
- run: choco install make
|
|
- name: Install golang dependencies
|
|
shell: bash
|
|
run: |-
|
|
make deps
|
|
- name: Pre-download docker test image
|
|
shell: bash
|
|
run: |-
|
|
docker pull docker.mirror.hashicorp.services/hashicorpdev/busybox-windows:ltsc2019
|
|
- name: Build nomad
|
|
shell: bash
|
|
run: |-
|
|
go install .
|
|
- name: Run tests with gotestsum
|
|
shell: bash
|
|
env:
|
|
BUSYBOX_IMAGE: docker.mirror.hashicorp.services/hashicorpdev/busybox-windows:ltsc2019
|
|
run: |-
|
|
# Only test docker driver tests for now
|
|
export PATH=/c/go/bin:/c/gopath/bin:$PATH
|
|
gotestsum --format=short-verbose \
|
|
--junitfile results.xml \
|
|
github.com/hashicorp/nomad/drivers/docker \
|
|
github.com/hashicorp/nomad/client/lib/fifo \
|
|
github.com/hashicorp/nomad/client/logmon \
|
|
github.com/hashicorp/nomad/client/allocrunner/taskrunner/template \
|
|
github.com/hashicorp/nomad/plugins/base
|
|
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
|
with:
|
|
name: results.xml
|
|
path: results.xml
|
|
permissions:
|
|
contents: read
|