This repository has been archived by the owner on Feb 16, 2024. It is now read-only.
fix: files moved #31
Workflow file for this run
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: 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 |