Bump chroma-js from 2.4.2 to 3.1.2 #39963
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: Run InspecJS Tests | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '2.7' | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "18" | |
check-latest: true | |
cache: 'yarn' | |
- name: Remove frontend and backend code to ensure the proper dependencies are declared in the inspecjs package.json | |
run: | | |
rm -rf apps/frontend | |
rm -rf apps/backend | |
- name: Install project dependencies | |
run: yarn inspecjs install --frozen-lockfile | |
- name: Run unit tests | |
run: yarn inspecjs test | |
- name: Validate there are no changes between the inspec schemas and generated parsers | |
run: | | |
bundle install --gemfile libs/inspecjs/Gemfile | |
yarn inspecjs gen-types | |
yarn inspecjs validate-types | |
- name: Ensure InspecJS builds cleanly | |
run: yarn inspecjs build |