Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
DevKit updates (#663)
Browse files Browse the repository at this point in the history
  • Loading branch information
SonataCI authored Oct 29, 2020
1 parent dbf7d74 commit 760caae
Show file tree
Hide file tree
Showing 3 changed files with 182 additions and 182 deletions.
82 changes: 41 additions & 41 deletions .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,59 +5,59 @@
name: Documentation

on:
push:
branches:
- 3.x
- master
pull_request:
push:
branches:
- 3.x
- master
pull_request:

jobs:
build:
name: Sphinx build
build:
name: Sphinx build

runs-on: ubuntu-latest
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: '3.7'
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: '3.7'

- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Display Python version
run: python -c "import sys; print(sys.version)"

- name: Install Sphinx dependencies
run: sudo apt-get install python-dev build-essential
- name: Install Sphinx dependencies
run: sudo apt-get install python-dev build-essential

- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip

key: ${{ runner.os }}-pip-${{ hashFiles('docs/requirements.txt') }}
restore-keys: ${{ runner.os }}-pip-
key: ${{ runner.os }}-pip-${{ hashFiles('docs/requirements.txt') }}
restore-keys: ${{ runner.os }}-pip-

- name: Install custom requirements via pip
run: pip install -r docs/requirements.txt
- name: Install custom requirements via pip
run: pip install -r docs/requirements.txt

- name: Build documentation
run: make docs
- name: Build documentation
run: make docs

doctor-rst:
name: DOCtor-RST
doctor-rst:
name: DOCtor-RST

runs-on: ubuntu-latest
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Run DOCtor-RST
uses: docker://oskarstark/doctor-rst
with:
args: --short --error-format=github
env:
DOCS_DIR: 'docs/'
- name: Run DOCtor-RST
uses: docker://oskarstark/doctor-rst
with:
args: --short --error-format=github
env:
DOCS_DIR: 'docs/'
98 changes: 49 additions & 49 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,72 +5,72 @@
name: Lint

on:
push:
branches:
- 3.x
- master
pull_request:
push:
branches:
- 3.x
- master
pull_request:

jobs:
php-cs-fixer:
name: PHP-CS-Fixer
php-cs-fixer:
name: PHP-CS-Fixer

runs-on: ubuntu-latest
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Run PHP-CS-Fixer
uses: docker://oskarstark/php-cs-fixer-ga:2.16.4
with:
args: --ansi --verbose --diff --dry-run
- name: Run PHP-CS-Fixer
uses: docker://oskarstark/php-cs-fixer-ga:2.16.4
with:
args: --ansi --verbose --diff --dry-run

composer-normalize:
name: composer-normalize
composer-normalize:
name: composer-normalize

runs-on: ubuntu-latest
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Run composer-normalize
uses: docker://ergebnis/composer-normalize-action:0.8.0
with:
args: --dry-run
- name: Run composer-normalize
uses: docker://ergebnis/composer-normalize-action:0.8.0
with:
args: --dry-run

yaml-files:
name: YAML files
yaml-files:
name: YAML files

runs-on: ubuntu-latest
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install Ruby 2.6
uses: actions/setup-ruby@v1
with:
ruby-version: '2.6'
- name: Install Ruby 2.6
uses: actions/setup-ruby@v1
with:
ruby-version: '2.6'

- name: Install required gem
run: gem install yaml-lint
- name: Install required gem
run: gem install yaml-lint

- name: Lint files
run: make lint-yaml
- name: Lint files
run: make lint-yaml

xml-files:
name: XML files
xml-files:
name: XML files

runs-on: ubuntu-latest
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install required dependencies
run: sudo apt-get update && sudo apt-get install libxml2-utils
- name: Install required dependencies
run: sudo apt-get update && sudo apt-get install libxml2-utils

- name: Lint files
run: make lint-xml
- name: Lint files
run: make lint-xml
Loading

0 comments on commit 760caae

Please sign in to comment.