Skip to content

Commit 003e108

Browse files
committed
Add excluded files from "exports", tweak tests workflow
1 parent 788ea70 commit 003e108

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

.gitattributes

+10-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1-
* text=auto
1+
* text=auto
2+
3+
*.md diff=markdown
4+
*.php diff=php
5+
6+
/.github export-ignore
7+
/.gitpod export-ignore
8+
.gitattributes export-ignore
9+
.gitpod.yml export-ignore
10+
CHANGELOG.md export-ignore

.github/workflows/tests.yml

+7-10
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ jobs:
6565
run: php ./.github/workflows/utilities/library-switcher "1.2.x-dev as 1.2"
6666

6767
- name: Setup dependency cache
68-
id: composercache
69-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
68+
id: composer-cache
69+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
7070

7171
- name: Cache dependencies
7272
uses: actions/cache@v3
7373
with:
74-
path: ${{ steps.composercache.outputs.dir }}
74+
path: ${{ steps.composer-cache.outputs.dir }}
7575
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
7676
restore-keys: ${{ runner.os }}-composer-
7777

@@ -133,9 +133,6 @@ jobs:
133133
php-version: ${{ matrix.phpVersion }}
134134
extensions: ${{ env.extensions }}
135135

136-
- name: Echo branches
137-
run: echo "${{ github.ref }} | ${{ github.head_ref }} | ${{ github.ref_name }} | ${{ github.base_ref }}"
138-
139136
- name: Switch library dependency (develop)
140137
if: github.ref == 'refs/heads/develop' || github.base_ref == 'develop'
141138
run: php ./.github/workflows/utilities/library-switcher "dev-develop as 1.2"
@@ -153,13 +150,13 @@ jobs:
153150
run: php ./.github/workflows/utilities/library-switcher "1.2.x-dev as 1.2"
154151

155152
- name: Setup dependency cache
156-
id: composercache
157-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
153+
id: composer-cache
154+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
158155

159156
- name: Cache dependencies
160-
uses: actions/cache@v2
157+
uses: actions/cache@v3
161158
with:
162-
path: ${{ steps.composercache.outputs.dir }}
159+
path: ${{ steps.composer-cache.outputs.dir }}
163160
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
164161
restore-keys: ${{ runner.os }}-composer-
165162

0 commit comments

Comments
 (0)