feat(dvt): implement device info DVT instrument #390
Workflow file for this run
This file contains hidden or 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: Format Check | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| prepare_matrix: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| versions: ${{ steps.generate-matrix.outputs.lts }} | |
| steps: | |
| - name: Select all current LTS versions of Node.js | |
| id: generate-matrix | |
| uses: msimerson/node-lts-versions@v1 | |
| format-check: | |
| runs-on: macos-latest | |
| needs: | |
| - prepare_matrix | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: ${{ fromJSON(needs.prepare_matrix.outputs.versions) }} | |
| steps: | |
| - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v3 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v3 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Check formatting | |
| # Run prettier in check mode (doesn't modify files) | |
| run: npm run format:check | |
| - name: Format instructions (if check fails) | |
| if: ${{ failure() }} | |
| run: | | |
| echo "::error::Formatting issues detected. Run 'npm run format' locally to fix." |