fix(deps): Update dependency prettier to v3.3.3 (#190) #686
This file contains 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
# Copyright 2023 Google LLC | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
name: Frontend tests | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'src/frontend/**' | |
- '.github/workflows/frontend.yml' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'src/frontend/**' | |
- '.github/workflows/frontend.yml' | |
jobs: | |
frontend-unit-tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Cache dependencies | |
uses: actions/cache@v4 | |
with: | |
path: src/frontend/node_modules | |
key: ${{ runner.os }}-node-modules-${{ hashFiles('src/frontend/package-lock.json') }} | |
- name: Install dependencies | |
run: npm ci | |
working-directory: src/frontend | |
- name: Execute Unit tests with coverage | |
run: npm run coverage | |
working-directory: src/frontend |