chore: make idea buttons the same #8876
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 and build | |
| on: [push] | |
| jobs: | |
| test-and-build: | |
| name: Test and Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." | |
| - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" | |
| - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: 'npm' | |
| cache-dependency-path: package-lock.json | |
| - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." | |
| - run: echo "🖥️ The workflow is now ready to test your code on the runner." | |
| - run: npm ci | |
| env: | |
| NPM_TASKFORCESH_TOKEN: ${{ secrets.NPM_TASKFORCESH_TOKEN }} | |
| - name: Configure Datadog Test Visibility | |
| env: | |
| DD_SERVICE_NAME: ${{ secrets.DD_SERVICE_NAME }} | |
| DD_API_KEY: ${{ secrets.DD_API_KEY }} | |
| uses: datadog/test-visibility-github-action@v2 | |
| with: | |
| languages: js | |
| service: ${{ secrets.DD_SERVICE_NAME }} | |
| api_key: ${{ secrets.DD_API_KEY }} | |
| # we need to pin this for now since 5.68.0 breaks the ci | |
| js-tracer-version: 5.67.0 | |
| - run: npm run lint | |
| - run: echo "✅ Your code has been linted." | |
| - run: npm run test | |
| env: | |
| # Required to allow Datadog to trace Vitest tests | |
| NODE_OPTIONS: -r ${{ env.DD_TRACE_PACKAGE }} --import ${{ env.DD_TRACE_ESM_IMPORT }} | |
| - run: echo "✅ All tests passed." | |
| - run: VITE_MODE=test npm run build | |
| - run: echo "✅ Your code has been built." |