diff --git a/.github/workflows/app-code-check.yml b/.github/workflows/app-code-check.yml deleted file mode 100644 index 3488757bf..000000000 --- a/.github/workflows/app-code-check.yml +++ /dev/null @@ -1,55 +0,0 @@ -name: PHP AppCode Check - -on: - pull_request: - push: - branches: - - master - - stable* - -env: - APP_NAME: activity - -jobs: - unit-tests: - runs-on: ubuntu-latest - - strategy: - matrix: - php-versions: ['7.4'] - server-versions: ['master'] - - name: AppCode check php${{ matrix.php-versions }}-${{ matrix.server-versions }} - steps: - - name: Checkout server - uses: actions/checkout@v2 - with: - repository: nextcloud/server - ref: ${{ matrix.server-versions }} - - - name: Checkout submodules - shell: bash - run: | - auth_header="$(git config --local --get http.https://github.com/.extraheader)" - git submodule sync --recursive - git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1 - - - name: Checkout app - uses: actions/checkout@v2 - with: - path: apps/${{ env.APP_NAME }} - - - name: Set up php ${{ matrix.php-versions }} - uses: shivammathur/setup-php@v1 - with: - php-version: ${{ matrix.php-versions }} - tools: phpunit - extensions: mbstring, iconv, fileinfo, intl, sqlite, pdo_sqlite - - - name: Checkout app - uses: actions/checkout@v2 - with: - path: apps/${{ env.APP_NAME }} - - - name: App code check - run: php occ app:check-code ${{ env.APP_NAME }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c25964a74..b9f81ee22 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -93,3 +93,21 @@ jobs: - name: Lint run: npm run stylelint + + xml-linters: + runs-on: ubuntu-latest + + name: info.xml lint + steps: + - name: Checkout + uses: actions/checkout@master + + - name: Download schema + run: wget https://raw.githubusercontent.com/nextcloud/server/master/resources/app-info-shipped.xsd + + - name: Lint info.xml + uses: ChristophWurst/xmllint-action@v1 + with: + xml-file: ./appinfo/info.xml + xml-schema-file: ./app-info-shipped.xsd +