Skip to content

Build(deps): Bump actions/checkout from 3 to 4 #159

Build(deps): Bump actions/checkout from 3 to 4

Build(deps): Bump actions/checkout from 3 to 4 #159

name: Process NIST OSCAL
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
go-version: [1.20.x]
runs-on: ${{ matrix.os }}
steps:
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Get Go dependencies
run: go get -v -t -d ./...
- name: Build metaschema
run: go build -v ./cli/gocomply_metaschema
- name: Acquire NIST OSCAL
run: git clone --depth 1 https://github.com/usnistgov/OSCAL
- name: generate go code for NIST OSCAL
run: |
./gocomply_metaschema generate ./OSCAL/src/metaschema github.com/gocomply/oscalkit types/oscal || :