Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Niloofar / Setup Github actions #12

Niloofar / Setup Github actions

Niloofar / Setup Github actions #12

Workflow file for this run

name: SmartTrader Test Workflow
on: pull_request
jobs:
build_and_test:
name: Build and Test
runs-on: ubuntu-latest
steps:
# checkout the repository content to github runner
- name: Checkout
uses: actions/checkout@v4
# setup nodejs environment
- name: Setup Node.js environment
uses: ./.github/actions/setup_node
# cache the dependencies to speed up the build and then install dependencies
- name: Cache dependencies
uses: ./.github/actions/npm_install_from_cache
# build the react app
- name: Build
run: npm run build
# run tests
- name: Run tests
run: npm run test
# deploy the react app to github pages