Merge pull request #159 from oasis-open/update-workflows #55
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
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: cti-stix2-json-schemas test harness | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Python 3.x Build | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js 16 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Set up Python 3.x | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install and update essential dependencies | |
run: | | |
pip install -U pip setuptools | |
pip install stix2-validator | |
- name: Install npm dependencies | |
run: | | |
npm install -g ajv-cli ajv-formats-draft2019 ajv-formats | |
- name: Test Examples | |
run: | | |
./test_examples.sh |