This repository has been archived by the owner on Sep 13, 2023. It is now read-only.
chore(deps) Update all non-major dependencies #714
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: Lighthouse | |
on: [push] | |
jobs: | |
lhci: | |
name: Lighthouse | |
runs-on: ubuntu-latest | |
services: | |
redis: | |
image: redis | |
options: >- | |
--health-cmd "redis-cli ping" | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 6379:6379 | |
postgres: | |
image: postgres | |
env: | |
POSTGRES_PASSWORD: 12345 | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 5432:5432 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install Node Deps | |
run: | | |
npm --version | |
npm install | |
- name: Setup Poetry | |
uses: snok/install-poetry@v1 | |
- name: install deps | |
run: | | |
sudo apt-get install libxml2-dev libxmlsec1-dev libxmlsec1-openssl | |
cd solr && docker run -d -v "$PWD:/var/solr/mine" -p 8983:8983 --name solr_dev solr:8 | |
sleep 30 # give solar time to start | |
docker exec solr_dev bash -c "source /var/solr/mine/setup_cores.sh;" | |
poetry install | |
- name: start Atlas Testserver | |
run: (npm run start:test&) | |
env: | |
POSTGRES_HOST: localhost | |
POSTGRES_PORT: 5432 | |
PGPASSWORD: 12345 | |
POSTGRES_DB: postgres | |
REDIS_HOST: localhost | |
REDIS_PORT: 6379 | |
- name: run Lighthouse CI | |
run: | | |
npm install -g @lhci/cli@0.9.x | |
lhci autorun | |
env: | |
POSTGRES_HOST: localhost | |
POSTGRES_PORT: 5432 | |
PGPASSWORD: 12345 | |
POSTGRES_DB: postgres | |
REDIS_HOST: localhost | |
REDIS_PORT: 6379 | |
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} | |
LHCI_TOKEN: ${{ secrets.LHCI_TOKEN }} | |
DJANGO_SETTINGS_MODULE: atlas.settings.test |