ci: install node and run yarn for e2e tests
This commit is contained in:
parent
3eb2cda37d
commit
6643cce841
|
@ -121,6 +121,9 @@ jobs:
|
||||||
- uses: actions/setup-python@v1
|
- uses: actions/setup-python@v1
|
||||||
with:
|
with:
|
||||||
python-version: '3.8'
|
python-version: '3.8'
|
||||||
|
- uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: '12'
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo pip install -U wheel pipenv
|
sudo pip install -U wheel pipenv
|
||||||
|
@ -130,6 +133,10 @@ jobs:
|
||||||
cd e2e
|
cd e2e
|
||||||
docker-compose pull -q chrome
|
docker-compose pull -q chrome
|
||||||
docker-compose up -d chrome
|
docker-compose up -d chrome
|
||||||
|
- name: Build static files for e2e test
|
||||||
|
run: |
|
||||||
|
cd passbook/static/static
|
||||||
|
yarn
|
||||||
- name: Run coverage
|
- name: Run coverage
|
||||||
run: pipenv run coverage run ./manage.py test --failfast
|
run: pipenv run coverage run ./manage.py test --failfast
|
||||||
- name: Create XML Report
|
- name: Create XML Report
|
||||||
|
|
|
@ -1,6 +1,12 @@
|
||||||
#!/bin/bash -x
|
#!/bin/bash -x
|
||||||
sudo apt update
|
sudo apt update
|
||||||
|
# Setup python
|
||||||
sudo apt install -y python3.8 python3-pip apt-transport-https ca-certificates curl gnupg-agent software-properties-common
|
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 -
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
||||||
sudo add-apt-repository \
|
sudo add-apt-repository \
|
||||||
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
|
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
|
||||||
|
|
Reference in New Issue