Skip to content

Commit 25d5932

Browse files
authored
ci: add install test (#3)
1 parent 2876cd5 commit 25d5932

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

.github/workflows/install.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Installation Test
2+
3+
on:
4+
workflow_dispatch: {}
5+
schedule:
6+
- cron: 0 12 10 * *
7+
push:
8+
branches:
9+
- main
10+
paths-ignore:
11+
- "docs/**"
12+
- package.json
13+
- package-lock.json
14+
- "*.md"
15+
pull_request:
16+
branches:
17+
- main
18+
paths-ignore:
19+
- "docs/**"
20+
- package.json
21+
- package-lock.json
22+
- "*.md"
23+
24+
jobs:
25+
compute_matrix:
26+
runs-on: ubuntu-latest
27+
outputs:
28+
matrix: ${{ steps.supported-version.outputs.matrix }}
29+
steps:
30+
- uses: graycoreio/github-actions-magento2/supported-version@main
31+
id: supported-version
32+
- run: echo ${{ steps.supported-version.outputs.matrix }}
33+
34+
install-test:
35+
needs: compute_matrix
36+
strategy:
37+
matrix: ${{ fromJSON(needs.compute_matrix.outputs.matrix) }}
38+
runs-on: ubuntu-latest
39+
steps:
40+
- uses: actions/checkout@v2
41+
- uses: graycoreio/github-actions-magento2/installation-test@main
42+
with:
43+
composer_version: ${{ matrix.composer }}
44+
php_version: ${{ matrix.php }}
45+
magento_version: ${{ matrix.magento }}
46+
composer_auth: ${{ secrets.COMPOSER_AUTH }}
47+
package_name: graycore/magento2-graphql-logger
48+
source_folder: $GITHUB_WORKSPACE

.github/workflows/integration.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Integration Test
22

33
on:
4+
workflow_dispatch: {}
5+
schedule:
6+
- cron: 0 12 10 * *
47
push:
58
branches:
69
- main

0 commit comments

Comments
 (0)