Skip to content

Add JavaScript Style Standard and CI Enforcement #1

Add JavaScript Style Standard and CI Enforcement

Add JavaScript Style Standard and CI Enforcement #1

Workflow file for this run

name: CI
# Controls when the action will run.
on:
# Triggers the workflow on pull request events but only for the master branch
# ignore pull requests that only change documentation/license files
pull_request:
branches: [ master ]
paths-ignore:
- LICENSE
- '**.md'
- .github/workflows/faux-crucible-ci.yaml
- .github/workflows/faux-ci.yaml
- 'docs/**'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
group: ${{ github.ref }}/cdm-ci
cancel-in-progress: true
jobs:
# Job to test installation
formatting:
# Job will run on github-hosted runner
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "20.7.0"
- name: fail if javascript files are not formatted
run: npx prettier **/*.js --check
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}