mirror of
https://github.com/coreos/ignition.git
synced 2026-02-06 18:47:54 +01:00
41 lines
1016 B
YAML
41 lines
1016 B
YAML
# Maintained in https://github.com/coreos/repo-templates
|
|
# Do not edit downstream.
|
|
|
|
name: ignition-validate
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
permissions:
|
|
contents: read
|
|
|
|
# don't waste job slots on superseded code
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
test-validate:
|
|
name: Test ignition-validate
|
|
strategy:
|
|
matrix:
|
|
go-version: [1.24.x]
|
|
os: [macos-latest, windows-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Set up Go 1.x
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
- name: Check out repository
|
|
uses: actions/checkout@v4
|
|
- name: Build ignition-validate
|
|
shell: bash
|
|
run: go build -o ignition-validate github.com/coreos/ignition/v2/validate
|
|
- name: Test ignition-validate
|
|
shell: bash
|
|
run: |
|
|
go test -timeout 60s -cover \
|
|
$(go list ./config/... ./validate/...) --race
|