Skip to content

Commit

Permalink
use reusable workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
petrjasek committed Nov 14, 2024
1 parent f386d07 commit 4437ff7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 86 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/lint.yml

This file was deleted.

56 changes: 3 additions & 53 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,60 +5,10 @@ on: [push, pull_request]
jobs:

server:

strategy:
matrix:
python-version: ['3.10']

runs-on: ubuntu-latest

defaults:
run:
working-directory: server

steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- run: |
sudo apt-get update
sudo apt-get -y install libxml2-dev libxmlsec1-dev libxmlsec1-openssl libexempi-dev
- run: |
python -m pip install --upgrade pip wheel setuptools
python -m pip install -r dev-requirements.txt
uses: petrjasek/superdesk/.github/workflows/server.yml@chore-reusable-github-workflows

client:
uses: petrjasek/superdesk/.github/workflows/client.yml@chore-reusable-github-workflows

strategy:
matrix:
node-version: ['12.x', '14.x']

runs-on: ubuntu-latest

defaults:
run:
working-directory: client

steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- run: npm install

- run: npm run build

docker:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- run: docker compose build
uses: petrjasek/superdesk/.github/workflows/docker.yml@chore-reusable-github-workflows

0 comments on commit 4437ff7

Please sign in to comment.