Skip to content

Commit

Permalink
ci: Add CI workflow for react frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
Arabasta committed Jul 13, 2024
1 parent e0709c1 commit 92cb61c
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/ci_react_frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: React CI

on:
push:
branches:
- master
paths:
- 'react_frontend/**'
- '.github/workflows/ci_react_frontend.yml'
pull_request:
branches:
- master
paths:
- 'react_frontend/**'
- '.github/workflows/ci_react_frontend.yml'

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'

- name: Install dependencies
working-directory: ./react_frontend
run: npm install

- name: Run build
working-directory: ./react_frontend
run: npm run build

- name: Run tests
working-directory: ./react_frontend
run: npm test

0 comments on commit 92cb61c

Please sign in to comment.