Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.

Commit 835e515

Browse files
authored
Merge pull request #134 from OS2Forms/OS2FORMS-380-github-actions
OS2FORMS-380
2 parents ec51ef4 + d8f47eb commit 835e515

File tree

12 files changed

+277
-146
lines changed

12 files changed

+277
-146
lines changed

.github/workflows/push.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Check Code standards
2+
on: [push]
3+
jobs:
4+
coding-standards:
5+
name: PHP - Check Coding Standards
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Checkout
9+
uses: actions/checkout@v2
10+
11+
# https://github.com/shivammathur/setup-php#cache-composer-dependencies
12+
- name: Get composer cache directory
13+
id: composer-cache
14+
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
15+
- name: Cache dependencies
16+
uses: actions/cache@v2
17+
with:
18+
path: ${{ steps.composer-cache.outputs.dir }}
19+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
20+
restore-keys: ${{ runner.os }}-composer-
21+
22+
- name: Install dependencies
23+
run: composer install --no-interaction
24+
25+
- name: Check coding standards
26+
run: composer run coding-standards-check --no-interaction

CHANGELOG.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# OS2Forms Forløb Change Log
2+
All notable changes to this project should be documented in this file.
3+
4+
The format is based on [Keep a Changelog](http://keepachangelog.com/)
5+
and this project adheres to [Semantic Versioning](http://semver.org/).
6+
7+
See ["how do I make a good changelog record?"](https://keepachangelog.com/en/1.0.0/#how)
8+
before starting to add changes.
9+
10+
## [Unreleased]
11+
12+
### Added
13+
- Github CI action for checking Drupal Coding standards with PHP Code Sniffer
14+
- Fixed coding standards issues
15+
16+
17+
## Example of change log record
18+
```
19+
## [x.x.x] Release name
20+
### Added
21+
- Description on added functionality.
22+
23+
### Changed/Updated
24+
- Description on changed/updated functionality.
25+
26+
### Deprecated
27+
- Description of soon-to-be removed features.
28+
29+
### Removed
30+
- Description of removed features.
31+
32+
### Fixed
33+
- Decription of bug fixes.
34+
35+
### Security
36+
- Security in case of vulnerabilities.
37+
38+
```

composer.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@
5454
"webmozart/path-util": "^2.3",
5555
"zaporylie/composer-drupal-optimizations": "^1.2"
5656
},
57+
"require-dev": {
58+
"drupal/coder": "^8.3",
59+
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1"
60+
},
5761
"extra": {
5862
"composer-exit-on-patch-failure": true,
5963
"patchLevel": {
@@ -80,5 +84,22 @@
8084
"Duplicated attachments in emails generated by Webform: (https://www.drupal.org/project/smtp/issues/2995290)": "https://www.drupal.org/files/issues/2021-11-02/smtp-2995290-23.patch"
8185
}
8286
}
87+
},
88+
"scripts": {
89+
"coding-standards-check/phpcs": [
90+
"phpcs --standard=phpcs.xml.dist"
91+
],
92+
"coding-standards-check": [
93+
"@coding-standards-check/phpcs"
94+
],
95+
"coding-standards-apply/phpcs": [
96+
"phpcbf --standard=phpcs.xml.dist"
97+
],
98+
"coding-standards-apply": [
99+
"@coding-standards-apply/phpcs"
100+
]
101+
},
102+
"config": {
103+
"sort-packages": true
83104
}
84105
}

css/gin-custom.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
.ui-dialog:not(.ui-dialog-off-canvas) {
2-
width: 70vw!important;
2+
width: 70vw!important;
33
}

os2forms_forloeb.info.yml

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -6,51 +6,51 @@ core: 8.x
66
core_version_requirement: ^8 || ^9
77

88
dependencies:
9-
- admin_toolbar_tools
10-
- coc_forms_auto_export
11-
- config_entity_revisions
12-
- diff
13-
- entity_print
14-
- eu_cookie_compliance
15-
- events_logging
16-
- gin_toolbar
17-
- honeypot
18-
- libraries
19-
- maestro
20-
- mailsystem
21-
- masquerade
22-
- os2forms
23-
- os2forms_nemid
24-
- os2forms_dawa
25-
- os2forms_sbsys
26-
- os2web_simplesaml
27-
- pathauto
28-
- r4032login
29-
- redirect
30-
- smtp
31-
- system
32-
- switch_page_theme
33-
- token
34-
- ultimate_cron
35-
- user_default_page
36-
- webform
37-
- webform_ui
38-
- webform_access
39-
- webform_attachment
40-
- webform_composite
41-
- webform_embed
42-
- webform_entity_print
43-
- webform_entity_print_attachment
44-
- webform_migrate
45-
- webform_node_element
46-
- webform_remote_handlers
47-
- webform_rest
48-
- webform_revisions
49-
- webform_share
50-
- webform_scheduled_email
51-
- webform_submission_export_import
52-
- webform_submission_log
53-
- webform_templates
54-
- workflow_participants
9+
- 'drupal:admin_toolbar_tools'
10+
- 'drupal:coc_forms_auto_export'
11+
- 'drupal:config_entity_revisions'
12+
- 'drupal:diff'
13+
- 'drupal:entity_print'
14+
- 'drupal:eu_cookie_compliance'
15+
- 'drupal:events_logging'
16+
- 'drupal:gin_toolbar'
17+
- 'drupal:honeypot'
18+
- 'drupal:libraries'
19+
- 'drupal:maestro'
20+
- 'drupal:mailsystem'
21+
- 'drupal:masquerade'
22+
- 'drupal:os2forms'
23+
- 'drupal:os2forms_nemid'
24+
- 'drupal:os2forms_dawa'
25+
- 'drupal:os2forms_sbsys'
26+
- 'drupal:os2web_simplesaml'
27+
- 'drupal:pathauto'
28+
- 'drupal:r4032login'
29+
- 'drupal:redirect'
30+
- 'drupal:smtp'
31+
- 'drupal:system'
32+
- 'drupal:switch_page_theme'
33+
- 'drupal:token'
34+
- 'drupal:ultimate_cron'
35+
- 'drupal:user_default_page'
36+
- 'drupal:webform'
37+
- 'drupal:webform_ui'
38+
- 'drupal:webform_access'
39+
- 'drupal:webform_attachment'
40+
- 'drupal:webform_composite'
41+
- 'drupal:webform_embed'
42+
- 'drupal:webform_entity_print'
43+
- 'drupal:webform_entity_print_attachment'
44+
- 'drupal:webform_migrate'
45+
- 'drupal:webform_node_element'
46+
- 'drupal:webform_remote_handlers'
47+
- 'drupal:webform_rest'
48+
- 'drupal:webform_revisions'
49+
- 'drupal:webform_share'
50+
- 'drupal:webform_scheduled_email'
51+
- 'drupal:webform_submission_export_import'
52+
- 'drupal:webform_submission_log'
53+
- 'drupal:webform_templates'
54+
- 'drupal:workflow_participants'
5555
'interface translation project': os2forms_forloeb
5656
'interface translation server pattern': modules/contrib/os2forms_forloeb/translations/os2forms_forloeb.da.po

0 commit comments

Comments
 (0)