2323 runs-on : ubuntu-latest
2424 strategy :
2525 matrix :
26- php-versions : [ '8.1 ' ]
26+ php-versions : [ '8.3 ' ]
2727 dependency-version : [ prefer-lowest, prefer-stable ]
2828 steps :
2929 - uses : actions/checkout@master
@@ -39,24 +39,29 @@ jobs:
3939 id : composer-cache
4040 run : echo "::set-output name=dir::$(composer config cache-files-dir)"
4141 - name : Cache dependencies
42- uses : actions/cache@v2
42+ uses : actions/cache@v4
4343 with :
4444 path : ${{ steps.composer-cache.outputs.dir }}
4545 key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
4646 restore-keys : ${{ runner.os }}-composer-
4747 - name : Validate composer files
4848 run : |
4949 composer config --no-plugins allow-plugins.mglaman/composer-drupal-lenient true
50- composer validate --strict composer.json
50+ # The --strict flag on validate has been removed due to the package drupal/config_entity_revisions 2.0.x-dev
51+ # being considered a version cf. https://getcomposer.org/doc/articles/versions.md#branches
52+ composer validate composer.json
5153 # Check that dependencies resolve.
5254 composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
55+ - name : Check that composer file is normalized
56+ run : |
57+ composer normalize --dry-run
5358
5459 php-coding-standards :
5560 name : PHP coding standards
5661 runs-on : ubuntu-latest
5762 strategy :
5863 matrix :
59- php-versions : [ '8.1 ' ]
64+ php-versions : [ '8.3 ' ]
6065 steps :
6166 - uses : actions/checkout@master
6267 - name : Setup PHP, with composer and extensions
7176 id : composer-cache
7277 run : echo "::set-output name=dir::$(composer config cache-files-dir)"
7378 - name : Cache dependencies
74- uses : actions/cache@v2
79+ uses : actions/cache@v4
7580 with :
7681 path : ${{ steps.composer-cache.outputs.dir }}
7782 key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
8994 runs-on : ubuntu-latest
9095 strategy :
9196 matrix :
92- php-versions : [ '8.1 ' ]
97+ php-versions : [ '8.3 ' ]
9398 steps :
9499 - uses : actions/checkout@master
95100 - name : Setup PHP, with composer and extensions
@@ -104,7 +109,7 @@ jobs:
104109 id : composer-cache
105110 run : echo "::set-output name=dir::$(composer config cache-files-dir)"
106111 - name : Cache dependencies
107- uses : actions/cache@v2
112+ uses : actions/cache@v4
108113 with :
109114 path : ${{ steps.composer-cache.outputs.dir }}
110115 key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
@@ -113,27 +118,13 @@ jobs:
113118 run : |
114119 ./scripts/code-analysis
115120
116- markdownlint :
121+ coding-standards-markdown :
122+ name : Markdown coding standards
117123 runs-on : ubuntu-latest
118- name : markdownlint
119124 steps :
120125 - name : Checkout
121- uses : actions/checkout@v2
122- - name : Get yarn cache directory path
123- id : yarn-cache-dir-path
124- run : echo "::set-output name=dir::$(yarn cache dir)"
125- - name : Cache yarn packages
126- uses : actions/cache@v2
127- id : yarn-cache
128- with :
129- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
130- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
131- restore-keys : |
132- ${{ runner.os }}-yarn-
133- - name : Yarn install
134- uses : actions/setup-node@v2
135- with :
136- node-version : ' 20'
137- - run : yarn install
138- - name : markdownlint
139- run : yarn coding-standards-check/markdownlint
126+ uses : actions/checkout@master
127+
128+ - name : Coding standards
129+ run : |
130+ docker run --rm --volume $PWD:/md peterdavehello/markdownlint markdownlint '**/*.md'
0 commit comments