github.com/lyraproj/hiera@v1.0.0-rc4/.github/workflows/hiera_tests.yaml (about)

     1  name: Hiera Tests
     2  on: [push, pull_request]
     3  jobs:
     4  
     5    test:
     6      name: Test Linux
     7      runs-on: ubuntu-latest
     8      steps:
     9  
    10        - name: Set up Go 1.15
    11          uses: actions/setup-go@v1
    12          with:
    13            go-version: 1.15
    14          id: go
    15  
    16        - name: Check out code into the Go module directory
    17          uses: actions/checkout@v1
    18  
    19        - name: Set up GolangCI-Lint
    20          run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- latest
    21  
    22        - name: Lint
    23          run: ./bin/golangci-lint run ./...
    24  
    25        - name: Test
    26          run: go test -tags test -v ./...
    27  
    28    test-windows:
    29      name: Test Windows
    30      runs-on: windows-latest
    31      steps:
    32  
    33        - name: Set up Go 1.15
    34          uses: actions/setup-go@v1
    35          with:
    36            go-version: 1.15
    37          id: go
    38  
    39        - name: Check out code into the Go module directory
    40          uses: actions/checkout@v1
    41  
    42        - name: Test
    43          run: go test -tags test -v ./...