Skip to content

Commit

Permalink
Revamp CI/CD Infrastructure, Simplify Build (#1857), Fix JSON->XML Co…
Browse files Browse the repository at this point in the history
…nverter (#1849)

* Replaced `metaschema` submodule with `metaschema-xslt`
    * The `metaschema-xslt` version also fixes #1849
* Removed all bespoke scripts and replaced them with Makefile targets
* Changed CI infrastructure to use the new Makefile scripts
* Removed Dockerfile and infrastructure as it is no longer needed
* Changed model version to `1.1.0`

Co-authored-by: Wendell Piez <[email protected]>
Co-authored-by: Dmitry Cousin <[email protected]>
Co-authored-by: Chris Compton <[email protected]>
Co-authored-by: A.J. Stein <[email protected]>
  • Loading branch information
5 people authored Jul 25, 2023
1 parent 708ce87 commit d4e5c5c
Show file tree
Hide file tree
Showing 75 changed files with 632 additions and 7,859 deletions.
55 changes: 0 additions & 55 deletions .github/workflows/package-release.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/periodic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Periodic Checks
on:
schedule:
- cron: "0 0 * * MON"
- cron: "0 0 * * THU"
workflow_dispatch:
jobs:
linkcheck:
name: Validate Markdown Links
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
with:
submodules: recursive
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
with:
node-version-file: "build/.nvmrc"
cache: "npm"
cache-dependency-path: "build/package-lock.json"
- name: Perform link checking
run: |
make linkcheck
working-directory: build
- name: Create an issue if bad links are detected
if: failure()
uses: peter-evans/create-issue-from-file@433e51abf769039ee20ba1293a088ca19d573b7f # v3.0.0
with:
title: Scheduled Check of Markdown Documents Found Bad Hyperlinks
content-filepath: build/generated/mlc_report.log
labels: |
bug
Scope: Documentation
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Package Release
on:
push:
tags:
- v*
jobs:
package-release:
name: Package Release
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
with:
submodules: recursive
- uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "17"
- name: Generate artifacts
# RELEASE is set to the tag name (vX.X.X) without the first character
run: |
make -j2 artifacts archives RELEASE=${GITHUB_REF_NAME:1}
working-directory: build
- name: Create release
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.COMMIT_TOKEN }}
draft: true
generate_release_notes: true
fail_on_unmatched_files: true
files: |
build/generated/oscal*
30 changes: 0 additions & 30 deletions .github/workflows/status-ci-cd.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/status.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: OSCAL CI/CD
on:
push:
branches:
- main
- develop
- "feature-*"
- "release-*"
pull_request:
branches:
- main
- develop
- "feature-*"
- "release-*"
workflow_dispatch:
jobs:
checks:
name: Status Checks
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
with:
submodules: recursive
- uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "17"
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
with:
node-version-file: "build/.nvmrc"
cache: "npm"
cache-dependency-path: "build/package-lock.json"
- name: Install xmllint
run: sudo apt-get install -y libxml2-utils
- name: Run all pipelines
run: |
make --keep-going all
working-directory: build
69 changes: 0 additions & 69 deletions .github/workflows/workflow-generate-ci-documentation.yml

This file was deleted.

Loading

0 comments on commit d4e5c5c

Please sign in to comment.