Skip to content

Commit

Permalink
use github actions from newsroom-app repo
Browse files Browse the repository at this point in the history
  • Loading branch information
petrjasek committed Dec 17, 2024
1 parent 641ea46 commit e1dd7c4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 63 deletions.
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,20 @@ updates:
directory: "/client" # Location of package manifests
schedule:
interval: "daily"

- package-ecosystem: "pip" # See documentation for possible values
directory: "/server" # Location of package manifests
schedule:
interval: "daily"

- package-ecosystem: "npm" # See documentation for possible values
directory: "/client" # Location of package manifests
target-branch: "develop"
schedule:
interval: "daily"

- package-ecosystem: "pip" # See documentation for possible values
directory: "/server" # Location of package manifests
target-branch: "develop"
schedule:
interval: "daily"
69 changes: 6 additions & 63 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,70 +6,13 @@ on:
jobs:

server:
runs-on: ubuntu-latest
uses: superdesk/newsroom-app/.github/workflows/server.yml@develop

services:
redis:
image: redis:alpine
ports:
- "6379:6379"

mongo:
image: mongo:3.6
ports:
- "27017:27017"

elastic:
image: docker.elastic.co/elasticsearch/elasticsearch:7.6.2
ports:
- "9200:9200"
env:
discovery.type: single-node

defaults:
run:
working-directory: server

steps:
- uses: actions/checkout@v3

- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- run: sudo apt-get update && sudo apt-get -y install libxml2-dev libxmlsec1-dev libxmlsec1-openssl

- name: pip install
run: |
python -m pip install --upgrade pip wheel setuptools
pip install -r dev-requirements.txt
- name: pytest
run: pytest --disable-pytest-warnings --cov=./

- name: behave
run: behave --format progress2 --logging-level=ERROR
pytest:
uses: superdesk/newsroom-app/.github/workflows/pytest.yml@develop

behave:
uses: superdesk/newsroom-app/.github/workflows/pytest.yml@behave

client:
runs-on: ubuntu-latest

defaults:
run:
working-directory: client

steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v4
with:
node-version: '14.x'

- run: git config --global url."https://git@".insteadOf git://

- name: install
run: npm ci || npm install

- name: build
run: npm run build
uses: superdesk/newsroom-app/.github/workflows/client.yml@develop

0 comments on commit e1dd7c4

Please sign in to comment.