2023-03-16 11:54:21 +00:00
name : Test yml specs
on :
push :
branches :
- main
- patch-*
2023-09-25 19:35:36 +00:00
- prepare-*
2023-03-16 11:54:21 +00:00
paths :
- 'ee/cis/**.yml'
- '.github/workflows/test-yml-specs.yml'
pull_request :
paths :
- 'ee/cis/**.yml'
- '.github/workflows/test-yml-specs.yml'
workflow_dispatch : # Manual
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency :
group : ${{ github.workflow }}-${{ github.head_ref || github.run_id}}
cancel-in-progress : true
defaults :
run :
# fail-fast using bash -eo pipefail. See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference
shell : bash
permissions :
contents : read
jobs :
test-yml-specs :
strategy :
matrix :
os : [ ubuntu-latest]
2023-11-03 14:42:27 +00:00
go-version : [ '${{ vars.GO_VERSION }}' ]
2023-03-16 11:54:21 +00:00
runs-on : ${{ matrix.os }}
steps :
- name : Install Go
2023-08-31 17:09:21 +00:00
uses : actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
2023-03-16 11:54:21 +00:00
with :
go-version : ${{ matrix.go-version }}
- name : Checkout Code
2023-08-31 17:09:21 +00:00
uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
2023-03-16 11:54:21 +00:00
- name : Run apply spec tests
run : |
2023-06-07 20:59:30 +00:00
go test -v ./pkg/spec/...