bump up permissions #106
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: Frontend-Test | |
on: push | |
jobs: | |
test: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Configure Node caching | |
uses: actions/cache@v3 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.11" | |
- name: Install python dependencies | |
working-directory: ./backend | |
run: | | |
python -m pip install --upgrade pip | |
pip install wheel | |
pip install -r requirements.txt | |
pip install -r requirements-test.txt | |
- name: Install Node dependencies | |
working-directory: ./frontend | |
run: | | |
npm install | |
npx playwright install --with-deps | |
- name: Build the electron package and webservice | |
working-directory: ./frontend | |
run: npm run build | |
env: | |
in-ci: "true" | |
- name: Run tests | |
working-directory: ./frontend | |
run: npm test | |
env: | |
DEBUG: pw:webserver | |
timeout-minutes: 6 |