Repository navigation
test: remove ca trust test that is flaky on 2.9.0 #1355
This file contains hidden or 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: Quality | |
| on: [push] | |
| jobs: | |
| check_prettier: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version: 26 | |
| - name: Install npm packages | |
| run: npm install | |
| - name: Check Prettier | |
| run: ./node_modules/.bin/prettier --check ./pfSense-pkg-RESTAPI/files | |
| check_black: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - uses: psf/black@87928e6d6761a4a6d22250e1fee5601b3998086e # 26.5.1 | |
| lint_php: | |
| runs-on: ubuntu-latest | |
| needs: ["check_prettier"] | |
| strategy: | |
| matrix: | |
| PHP_VERSION: ["8.2"] | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: "Setup PHP ${{ matrix.PHP_VERSION }}" | |
| uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2 | |
| with: | |
| php-version: "${{ matrix.PHP_VERSION }}" | |
| coverage: "none" | |
| - name: "Run phplint" | |
| run: | | |
| curl -Ls https://github.com/overtrue/phplint/releases/download/9.0.3/phplint.phar -o /usr/local/bin/phplint | |
| chmod +x /usr/local/bin/phplint | |
| /usr/local/bin/phplint -vvv --no-cache | |
| lint_python: | |
| runs-on: ubuntu-latest | |
| needs: ["check_black"] | |
| strategy: | |
| matrix: | |
| PYTHON_VERSION: ["3.10", "3.11"] | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Set up Python ${{ matrix.PYTHON_VERSION }} | |
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: ${{ matrix.PYTHON_VERSION }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Run pylint | |
| run: pylint $(git ls-files '*.py') | |
| check_phpdoc: | |
| runs-on: ubuntu-latest | |
| needs: ["lint_php"] | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Check phpdoc build | |
| run: | | |
| wget https://phpdoc.org/phpDocumentor.phar -O phpdoc | |
| chmod +x ./phpdoc | |
| ./phpdoc |