Bug: Invisible gizmo can still transform #263
Workflow file for this run
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: 'CI' | |
on: | |
pull_request: | |
branches: ['trunk'] | |
jobs: | |
install: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout DIVE | |
uses: actions/checkout@main | |
- name: Setup Node.js | |
uses: actions/setup-node@main | |
- name: Search for cached dependencies | |
uses: actions/cache@main | |
id: yarn-cache | |
with: | |
path: node_modules | |
key: | |
node-modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }} | |
- name: Install DIVE dependencies (if cache not found) | |
if: steps.yarn-cache.outputs.cache-hit != 'true' | |
run: yarn | |
eslint: | |
runs-on: ubuntu-latest | |
needs: install | |
steps: | |
- name: Checkout DIVE | |
uses: actions/checkout@main | |
- name: Search for cached dependencies | |
uses: actions/cache@main | |
id: yarn-cache | |
with: | |
path: node_modules | |
key: | |
node-modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }} | |
- name: Install DIVE dependencies (if cache not found) | |
if: steps.yarn-cache.outputs.cache-hit != 'true' | |
run: yarn | |
- name: Lint DIVE | |
run: yarn lint | |
unit: | |
runs-on: ubuntu-latest | |
needs: install | |
steps: | |
- name: Checkout DIVE | |
uses: actions/checkout@main | |
- name: Search for cached dependencies | |
uses: actions/cache@main | |
id: yarn-cache | |
with: | |
path: node_modules | |
key: | |
node-modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }} | |
- name: Install DIVE dependencies (if cache not found) | |
if: steps.yarn-cache.outputs.cache-hit != 'true' | |
run: yarn | |
- name: Unit-Test DIVE (coverage) | |
run: yarn coverage | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: Upload test results to Codecov | |
if: ${{ !cancelled() }} | |
uses: codecov/test-results-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
prettier-check: | |
runs-on: ubuntu-latest | |
needs: install | |
steps: | |
- name: Checkout DIVE | |
uses: actions/checkout@main | |
- name: Search for cached dependencies | |
uses: actions/cache@main | |
id: yarn-cache | |
with: | |
path: node_modules | |
key: | |
node-modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }} | |
- name: Install DIVE dependencies (if cache not found) | |
if: steps.yarn-cache.outputs.cache-hit != 'true' | |
run: yarn | |
- name: Prettier check DIVE | |
run: yarn prettier:check | |
build: | |
runs-on: ubuntu-latest | |
needs: install | |
steps: | |
- name: Checkout | |
uses: actions/checkout@main | |
- name: Search for cached dependencies | |
uses: actions/cache@main | |
id: yarn-cache | |
with: | |
path: node_modules | |
key: | |
node-modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }} | |
- name: Install dependencies (if cache not found) | |
if: steps.yarn-cache.outputs.cache-hit != 'true' | |
run: yarn | |
- name: Build DIVE | |
run: yarn build | |
lint-actions: | |
runs-on: ubuntu-latest | |
needs: install | |
steps: | |
- name: Checkout | |
uses: actions/checkout@main | |
- name: Search for cached dependencies | |
uses: actions/cache@main | |
id: yarn-cache | |
with: | |
path: node_modules | |
key: | |
node-modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }} | |
- name: Install dependencies (if cache not found) | |
if: steps.yarn-cache.outputs.cache-hit != 'true' | |
run: yarn | |
- name: Run lint-actions | |
run: bash ci/lint/lint-actions.sh | |
publish-dry-run: | |
runs-on: ubuntu-latest | |
needs: [unit, eslint, build, prettier-check, lint-actions] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@main | |
- name: Search for cached dependencies | |
uses: actions/cache@main | |
id: yarn-cache | |
with: | |
path: node_modules | |
key: | |
node-modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }} | |
- name: Install dependencies (if cache not found) | |
if: steps.yarn-cache.outputs.cache-hit != 'true' | |
run: yarn | |
- name: Publish DIVE to npm (dry-run) | |
uses: JS-DevTools/npm-publish@v3 | |
with: | |
token: ${{ secrets.NPM_TOKEN }} | |
access: 'public' | |
dry-run: true |