diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f6a9ba7..07eff29 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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 @@ -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 @@ -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"] @@ -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 @@ -148,7 +149,7 @@ jobs: # sarif_file: results.sarif js-eslint: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 name: eslint steps: @@ -160,7 +161,7 @@ jobs: run: npm run lint stylelint: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 name: stylelint