Bump @reduxjs/toolkit from 2.2.7 to 2.3.0 in /client #501
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
name: 'React Client Tests' | |
# This workflow is responsible for running the Haztrak react client tests. | |
on: | |
pull_request: | |
branches: ['main'] | |
paths: | |
- 'client/**' | |
- '.github/workflows/test_client.yaml' | |
push: | |
paths: | |
- 'client/**' | |
- '.github/workflows/test_client.yaml' | |
workflow_call: | |
workflow_dispatch: | |
jobs: | |
run_client_tests: | |
name: 'Run Client Tests' | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./client | |
strategy: | |
matrix: | |
node-version: [18, 20] | |
steps: | |
- name: 'Checkout' | |
uses: actions/checkout@v3 | |
- name: 'Setup Node' | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
cache-dependency-path: '**/package-lock.json' | |
- name: 'Install Dependencies' | |
run: npm ci | |
- name: 'Configure env' | |
run: | | |
mv ../configs/.env.test .env | |
echo "VITE_HT_ENV=TEST" >> .env | |
- name: Test Node.js-${{ matrix.node-version }} | |
run: npm test | |
env: | |
VITE_HT_ENV: 'TEST' | |
test_client_build: | |
name: 'Test Build Client' | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./client | |
strategy: | |
matrix: | |
node-version: [18, 20] | |
steps: | |
- name: 'Checkout' | |
uses: actions/checkout@v3 | |
- name: 'Setup Node' | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
cache-dependency-path: '**/package-lock.json' | |
- name: 'Install Dependencies' | |
run: npm ci | |
- name: 'Build Client' | |
run: npm run build |