Skip to content

Commit 7328bc4

Browse files
authored
Exclude project files from create-project command (#39)
* Add exclusions * Update test coverage * Composer scripts
1 parent bbb220d commit 7328bc4

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

.gitattributes

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.gitattributes export-ignore
2+
.github/ export-ignore
3+
tests/ export-ignore

.github/workflows/tests.yml

+15-4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ defaults:
1111
shell: bash
1212

1313
jobs:
14+
create-project:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Create project
19+
run: |
20+
composer create-project --ignore-platform-reqs mstrelan/drupal-contrib:dev-${{ github.ref_name }}
21+
cd drupal-contrib
22+
make 11.x
23+
1424
tests:
1525
runs-on: ubuntu-latest
1626

@@ -20,13 +30,15 @@ jobs:
2030
drupal_version: ['10.3', '10.4', '10.5', '11.0', '11.1', '11.x']
2131

2232
steps:
23-
- name: Create project
33+
- name: Checkout
34+
uses: actions/checkout@v3
35+
36+
- name: Configure project
2437
run: |
25-
composer create-project --ignore-platform-reqs mstrelan/drupal-contrib:dev-${{ github.ref_name }}
38+
composer run post-root-package-install --no-interaction
2639
2740
- name: Initialise environment
2841
run: |
29-
cd drupal-contrib
3042
make ${{ matrix.drupal_version }}
3143
3244
- name: Setup homebrew
@@ -41,5 +53,4 @@ jobs:
4153
env:
4254
DRUPAL_VERSION: ${{ matrix.drupal_version == '11.x' && '11.2-dev' || matrix.drupal_version }}
4355
run: |
44-
cd drupal-contrib
4556
bats tests

0 commit comments

Comments
 (0)