-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (41 loc) · 1.06 KB
/
smoke-test.yml
File metadata and controls
45 lines (41 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: smoke-test
on:
schedule:
- cron: "0 */6 * * *"
workflow_dispatch:
jobs:
install:
name: Composer Install
runs-on: ubuntu-latest
steps:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.2"
tools: composer:v2
- name: Create composer.json
run: |
cat > composer.json <<'EOF'
{
"repositories": [
{
"name": "wp-composer",
"type": "composer",
"url": "https://repo.wp-composer.com",
"only": ["wp-plugin/*", "wp-theme/*"]
}
],
"require": {
"composer/installers": "^2.2",
"wp-plugin/woocommerce": "*",
"wp-theme/twentytwentyfive": "*"
},
"config": {
"allow-plugins": {
"composer/installers": true
}
}
}
EOF
- name: Composer install
run: composer install --no-interaction --no-progress