github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/.github/workflows/tests-js-snapshot.yml (about)

     1  name: JS Snapshot Tests
     2  
     3  on:
     4    push:
     5      branches: [main]
     6    pull_request:
     7      branches: [main]
     8  
     9  jobs:
    10    js-snapshot-tests:
    11      runs-on: ubuntu-latest
    12      # ATTENTION
    13      # if you ever update this container
    14      # remember to update the container that runs locally
    15      # (ie ./scripts/jest-snapshots)
    16      container: node:16.18-slim
    17      steps:
    18        - name: Checkout
    19          uses: actions/checkout@v2
    20        - name: Run Webapp Snapshot tests
    21          run: UPDATE_SNAPSHOTS=false ./scripts/jest-snapshots/run-snapshots.sh
    22        # since there are snapshot tests (for the flamegraph)
    23        # store their diff when it fails, plus the original image
    24        # to make it easier to compare
    25        - uses: actions/upload-artifact@v2
    26          if: failure()
    27          with:
    28            name: image-snapshots
    29            path: '**/__image_snapshots__/*'
    30        - name: Upload codecov coverage
    31          if: always()
    32          uses: codecov/codecov-action@v1
    33          with:
    34            name: js coverage
    35            fail_ci_if_error: false
    36            verbose: true