Translated using Weblate (Catalan)
[phpmyadmin.git] / .github / workflows / other-tools.yml
blob74708e30d5e3dfbe11d53b5e177d42f37e6a3721
1 name: Check other tools and scripts
3 on:
4   push:
5   pull_request:
6     types: [opened, synchronize, reopened]
7     branches:
8       - master
9       - QA_**
11 jobs:
12   build-documentation:
13     runs-on: ubuntu-latest
14     if: "!contains(github.event.head_commit.message, '[ci skip]')"
15     steps:
16       - name: Checkout code
17         uses: actions/checkout@v2
19       - name: Set up Python
20         uses: actions/setup-python@v2
21         with:
22           python-version: '3.6'
24       - name: Install Sphinx for the documentation build
25         run: pip install 'Sphinx'
27       - name: Build the documentation
28         run: make -C doc html SPHINXOPTS='-n -W -a'
30   build-release:
31     runs-on: ubuntu-latest
32     if: "!contains(github.event.head_commit.message, '[ci skip]')"
33     strategy:
34       matrix:
35         php-version: ["7.2"]
36     steps:
37       - name: Checkout code
38         uses: actions/checkout@v2
40       - name: Install gettext
41         run: sudo apt-get install -y gettext
43       - name: Set up PHP ${{ matrix.php-version }}
44         uses: shivammathur/setup-php@v2
45         with:
46           php-version: ${{ matrix.php-version }}
47           extensions: mbstring, iconv, mysqli, zip, gd
48           tools: composer:v2
50       - name: Install Composer dependencies
51         uses: ramsey/composer-install@v1
52         with:
53           dependency-versions: highest
55       - name: Set up Node
56         uses: actions/setup-node@v1
57         with:
58           node-version: 12
60       - name: Get Yarn cache directory path
61         id: yarn-cache-dir-path
62         run: echo "::set-output name=dir::$(yarn cache dir)"
64       - name: Cache Yarn dependencies
65         uses: actions/cache@v2
66         with:
67           path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
68           key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
69           restore-keys: |
70             ${{ runner.os }}-yarn-
72       - name: Install modules
73         run: yarn install --non-interactive
75       - name: Set up Python
76         uses: actions/setup-python@v2
77         with:
78           python-version: '3.6'
80       - name: Install Sphinx for the documentation build
81         run: pip install 'Sphinx'
83       - name: Build the release
84         run: ./scripts/create-release.sh --ci