Skip to content

Commit

Permalink
update lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey18106 committed Jun 22, 2024
1 parent d9ccbff commit 1335495
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,31 +21,30 @@ env:

jobs:
xml-lint:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
name: info.xml lint

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4

- name: Download xml appinfo schema
run: wget https://raw.githubusercontent.com/nextcloud/appstore/master/nextcloudappstore/api/v1/release/info.xsd

- name: Lint appinfo/info.xml
uses: ChristophWurst/xmllint-action@v1
uses: ChristophWurst/xmllint-action@v1.1
with:
xml-file: ./appinfo/info.xml
xml-schema-file: ./info.xsd

php-lint:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
name: php-lint
strategy:
matrix:
php-versions: ["7.4", "8.0", "8.1"]

name: php-lint
php-versions: ["8.0", "8.1"]

steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4

- name: Set up php ${{ matrix.php-versions }}
uses: shivammathur/setup-php@v2
Expand All @@ -57,17 +56,19 @@ jobs:
run: composer run lint

php-cs:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
name: php-cs
strategy:
matrix:
php-versions: ["8.0", "8.1"]

steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4

- name: Set up php ${{ matrix.php-versions }}
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
php-version: ${{ maxtrix.php-versions }}
coverage: none

- name: Install dependencies
Expand All @@ -77,7 +78,7 @@ jobs:
run: composer run cs:check || ( echo 'Please run `composer run cs:fix` to format your code' && exit 1 )

php-psalm-analysis:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
matrix:
php-versions: ["7.4", "8.0", "8.1"]
Expand Down Expand Up @@ -116,7 +117,7 @@ jobs:
- name: Set up php ${{ matrix.php-versions }}
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
php-version: ${{ matrix.php-versions }}
coverage: none

- name: Install dependencies
Expand Down Expand Up @@ -148,7 +149,7 @@ jobs:
# sarif_file: results.sarif

js-eslint:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
name: eslint

steps:
Expand All @@ -160,7 +161,7 @@ jobs:
run: npm run lint

stylelint:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

name: stylelint

Expand Down

0 comments on commit 1335495

Please sign in to comment.