Added base functionality to Quests page #46
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: CI workflow | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
PIP_CACHE_DIR: /cache/pip # Set custom cache directory | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
# Cache Dependencies | |
- name: Set up Dependencies Cache | |
uses: actions/cache@v3 | |
with: | |
path: app/cache/pip | |
key: Linux-pip-5a10801b288f9708023ca35be6b49ba1ed92ff245458982f0b7795057b587f54 | |
restore-keys: Linux-pip- | |
# Check for Cache Hit | |
- name: Check if cache hit | |
id: cache-check | |
run: echo "::set-output name=cache-hit::$(echo ${{ steps.cache-check.outputs.cache-hit }})" | |
# Install Dependencies (on No Cache Hit) | |
- name: Install dependencies | |
if: steps.cache-check.outputs.cache-hit != 'true' | |
run: | | |
cd app | |
npm install | |
# Check for Cached Dependencies | |
- name: List cached directories after dependency installation | |
run: ls /cache/pip || true | |
# Upload Coverage Report | |
- name: Upload coverage report | |
run: | | |
cd app | |
npm run coverage |