mirror of
https://github.com/zebrajr/traveltracer.git
synced 2025-12-05 12:20:26 +01:00
add basic ci pipeline
This commit is contained in:
parent
d12bab05a9
commit
5afb9aa05f
31
.github/workflows/react_ci.yml
vendored
Normal file
31
.github/workflows/react_ci.yml
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
name: React CI Pipeline
|
||||
|
||||
# Triggers
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
# Build and Test Job
|
||||
build-and-test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '18.x'
|
||||
cache: 'npm'
|
||||
cache-dependency-path: './frontend/package-lock.json'
|
||||
|
||||
- name: Install Dependencies
|
||||
working-directory: ./frontend
|
||||
run: npm install
|
||||
|
||||
- name: Build Frontend
|
||||
working-directory: ./frontend
|
||||
run: npm run build
|
||||
Loading…
Reference in New Issue
Block a user