github.com/hernad/nomad@v1.6.112/.github/workflows/test-windows.yml (about)

     1  name: test-windows
     2  on:
     3    pull_request:
     4      branches:
     5        - main
     6        - release/**
     7      paths-ignore:
     8        - 'README.md'
     9        - 'CHANGELOG.md'
    10        - '.changelog/**'
    11        - '.tours/**'
    12        - 'contributing/**'
    13        - 'demo/**'
    14        - 'dev/**'
    15        - 'e2e/**'
    16        - 'integrations/**'
    17        - 'pkg/**'
    18        - 'scripts/**'
    19        - 'terraform/**'
    20        - 'ui/**'
    21        - 'website/**'
    22    push:
    23      branches:
    24        - main
    25        - release/**
    26      paths-ignore:
    27        - 'README.md'
    28        - 'CHANGELOG.md'
    29        - '.changelog/**'
    30        - '.tours/**'
    31        - 'contributing/**'
    32        - 'demo/**'
    33        - 'dev/**'
    34        - 'e2e/**'
    35        - 'integrations/**'
    36        - 'pkg/**'
    37        - 'scripts/**'
    38        - 'terraform/**'
    39        - 'ui/**'
    40        - 'website/**'
    41  
    42  env:
    43    VAULT_VERSION: 1.4.1
    44  jobs:
    45    test-windows:
    46      runs-on: 'windows-2019-16core'
    47      env:
    48        GOTESTSUM_PATH: c:\tmp\test-reports
    49      steps:
    50        - name: Docker Info
    51          run: docker version
    52        - run: git config --global core.autocrlf false
    53        - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
    54        - name: Setup go
    55          uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
    56          with:
    57            go-version-file: ".go-version"
    58        - name: Show installed Go version
    59          shell: bash
    60          run: |-
    61            export PATH=/c/go/bin:/c/gopath/bin:$PATH
    62            go version
    63        - uses: "./.github/actions/install-vault"
    64          with:
    65            version: "$VAULT_VERSION"
    66        - run: vault version
    67        - run: choco install make
    68        - name: Install golang dependencies
    69          shell: bash
    70          run: |-
    71            make deps
    72        - name: Pre-download docker test image
    73          shell: bash
    74          run: |-
    75            docker pull docker.mirror.hashicorp.services/hashicorpdev/busybox-windows:ltsc2019
    76        - name: Build nomad
    77          shell: bash
    78          run: |-
    79            go install .
    80        - name: Run tests with gotestsum
    81          shell: bash
    82          env:
    83            BUSYBOX_IMAGE: docker.mirror.hashicorp.services/hashicorpdev/busybox-windows:ltsc2019
    84          run: |-
    85            # Only test docker driver tests for now
    86            export PATH=/c/go/bin:/c/gopath/bin:$PATH
    87            gotestsum --format=short-verbose \
    88              --junitfile results.xml \
    89              github.com/hernad/nomad/drivers/docker \
    90              github.com/hernad/nomad/client/lib/fifo \
    91              github.com/hernad/nomad/client/logmon
    92        - uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
    93          with:
    94            name: results.xml
    95            path: results.xml
    96  permissions:
    97    contents: read