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: Test Validation | |
| 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 | |
| validate-tests: | |
| 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: Build project including tests | |
| run: npm run build | |
| - name: Run unit tests | |
| run: npm run test:unit |