Build(deps): Bump actions/checkout from 3 to 4 #159
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 || : |