github.com/thanos-io/thanos@v0.32.5/.github/workflows/react.yml (about)

     1  name: react
     2  
     3  on:
     4    push:
     5      branches:
     6        - main
     7    pull_request:
     8  
     9  jobs:
    10    build:
    11      runs-on: ubuntu-latest
    12      strategy:
    13        matrix:
    14          node: [ '14' ]
    15      name: React UI test on Node ${{ matrix.node }}
    16      steps:
    17        - name: Checkout code
    18          uses: actions/checkout@v3
    19  
    20        - name: Install nodejs
    21          uses: actions/setup-node@v3
    22          with:
    23            node-version: ${{ matrix.node }}
    24  
    25        - uses: actions/cache@v3
    26          with:
    27            path: ~/.npm
    28            key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
    29            restore-keys: |
    30              ${{ runner.os }}-node-
    31  
    32        - run: make react-app-test