Bump minimist, mkdirp and loader-fs-cache #54
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: Code Commit - Workflow | |
# Trigger the workflow on push to any branch except master | |
on: | |
push: | |
branches-ignore: | |
- 'master' | |
jobs: | |
spell-check: | |
name: markdown spell check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code. | |
uses: actions/checkout@v2 | |
- name: Spelling check via PySpelling | |
uses: rojopolis/spellcheck-github-actions@0.6.0 | |
super-linter: | |
# Job name | |
name: lint-code-base-using-super-linter | |
# Set the agent to run on | |
runs-on: ubuntu-latest | |
# Load all steps | |
steps: | |
# Checkout the code base | |
- name: Check out code | |
uses: actions/checkout@v2 | |
# Run Linter against code base | |
- name: Lint code base | |
uses: docker://github/super-linter:v3 | |
env: | |
VALIDATE_ALL_CODEBASE: true # will parse the entire repository and find all files to validate across all types. NOTE: When set to false, only new or edited files will be parsed for validation. | |
DEFAULT_BRANCH: master | |
VALIDATE_YAML: true | |
VALIDATE_JSON: true | |
VALIDATE_MD: true | |
VALIDATE_BASH: true # by default validates against POSIX rules, scripts using #!/bin/bash shebang | |
VALIDATE_JAVASCRIPT_ES: true # (Utilizing: eslint) | |
VALIDATE_DOCKER: true | |
ACTIONS_RUNNER_DEBUG: false # Flag to enable additional information about the linter, versions, and additional output. | |
DISABLE_ERROR: false # Flag to have the linter complete with exit code 0 even if errors were detected. | |
DEFAULT_WORKSPACE: /tmp/lint | |
validate-JSON-schema: | |
name: validate-JSON-schema | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code. | |
uses: actions/checkout@v2 | |
- name: Validate src/mission.json against JSON Schema | |
uses: docker://orrosenblatt/validate-json-action:latest | |
env: | |
INPUT_SCHEMA: ./src/missions.schema.json | |
INPUT_JSONS: ./src/missions.json | |
react-linting-and-testing: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [12.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install Packages | |
run: npm install | |
- name: Lint application | |
run: npm run lint | |
- name: Test application | |
run: CI=test npm run test | |
- name: Run test coverage report | |
run: npm run coverage | |
uml-validation: | |
name: uml-validation | |
needs: react-linting-and-testing | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code. | |
uses: actions/checkout@v2 | |
- name: Validate UML | |
uses: ./.github/actions/uml-validation | |
generate-SVG: | |
name: generate-svg | |
needs: uml-validation | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code. | |
uses: actions/checkout@v2 | |
- name: Generate SVG from UML | |
uses: ./.github/actions/generate-svg | |
- name: Print working directories | |
shell: bash | |
run: | | |
echo "${{ github.workspace }}" ${{ github.workspace }} | |
- name: Upload SVG files | |
uses: actions/upload-artifact@v2 | |
with: | |
name: generated-SVG-files | |
path: ./src/sequences/**/images/*.svg | |
env: | |
PUSH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload generated SVG base images | |
uses: actions/upload-artifact@v2 | |
with: | |
name: generated-SVG-base-images | |
path: ./images/*.svg | |
env: | |
PUSH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
commit-SVG: | |
name: commit-svg | |
needs: generate-SVG | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code. | |
uses: actions/checkout@v2 | |
- name: Download previously generated SVG files | |
uses: actions/download-artifact@v2 | |
with: | |
name: generated-SVG-files | |
path: ./src/sequences | |
- name: Download previously generated SVG base images | |
uses: actions/download-artifact@v2 | |
with: | |
name: generated-SVG-base-images | |
path: ./images | |
- name: Commit changes | |
uses: EndBug/add-and-commit@v4 | |
with: | |
author_name: "tom-halpin" | |
author_email: "tom.halpin@dxc.com" | |
message: "Committing workflow generated SVG files" | |
add: "--all" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |