ci: install node and run yarn for e2e tests

This commit is contained in:
Jens Langhammer 2020-06-21 13:18:06 +02:00
parent 3eb2cda37d
commit 6643cce841
2 changed files with 13 additions and 0 deletions

View file

@ -121,6 +121,9 @@ jobs:
- uses: actions/setup-python@v1
with:
python-version: '3.8'
- uses: actions/setup-node@v1
with:
node-version: '12'
- name: Install dependencies
run: |
sudo pip install -U wheel pipenv
@ -130,6 +133,10 @@ jobs:
cd e2e
docker-compose pull -q chrome
docker-compose up -d chrome
- name: Build static files for e2e test
run: |
cd passbook/static/static
yarn
- name: Run coverage
run: pipenv run coverage run ./manage.py test --failfast
- name: Create XML Report

View file

@ -1,6 +1,12 @@
#!/bin/bash -x
sudo apt update
# Setup python
sudo apt install -y python3.8 python3-pip apt-transport-https ca-certificates curl gnupg-agent software-properties-common
# Setup nodejs
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install -g yarn
# Setup docker
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \