Skip to content

Commit 0eaaa6f

Browse files
committed
Moving to shared workflow, updating set-output
1 parent 3b8346a commit 0eaaa6f

File tree

6 files changed

+47
-50
lines changed

6 files changed

+47
-50
lines changed

.github/dependabot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Please see the documentation for all configuration options:
2+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
3+
4+
version: 2
5+
updates:
6+
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
9+
schedule:
10+
interval: "weekly"
11+
12+
- package-ecosystem: "composer"
13+
directory: "/"
14+
schedule:
15+
interval: "weekly"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: dependabot-auto-approve
2+
on:
3+
pull_request:
4+
5+
permissions:
6+
pull-requests: write
7+
contents: write
8+
9+
jobs:
10+
dependabot:
11+
uses: alleyinteractive/.github/.github/workflows/dependabot-auto-approve.yml@main
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: dependabot-auto-merge
2+
on: pull_request_target
3+
4+
permissions:
5+
pull-requests: write
6+
contents: write
7+
8+
jobs:
9+
dependabot:
10+
uses: alleyinteractive/.github/.github/workflows/dependabot-auto-merge.yml@main

.github/workflows/linting.yml

Lines changed: 8 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,14 @@
1-
name: Linting
1+
name: Coding Standards
22

33
on:
4+
push:
5+
branches:
6+
- develop
7+
- main
48
pull_request:
9+
schedule:
10+
- cron: '0 0 * * *'
511

612
jobs:
713
coding-standards:
8-
runs-on: ubuntu-latest
9-
strategy:
10-
fail-fast: true
11-
12-
name: Coding Standards
13-
steps:
14-
- name: Cancel previous runs of this workflow (pull requests only)
15-
if: ${{ github.event_name == 'pull_request' }}
16-
uses: styfle/[email protected]
17-
with:
18-
access_token: ${{ github.token }}
19-
20-
- name: Checkout code
21-
uses: actions/checkout@v2
22-
23-
- name: Get Composer cache directory
24-
id: composer-cache
25-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
26-
27-
- name: Set up Composer caching
28-
uses: actions/cache@v2
29-
env:
30-
cache-name: cache-composer-dependencies
31-
with:
32-
path: ${{ steps.composer-cache.outputs.dir }}
33-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
34-
restore-keys: |
35-
${{ runner.os }}-composer-
36-
37-
- name: Setup PHP
38-
uses: shivammathur/setup-php@v2
39-
with:
40-
php-version: '8.0'
41-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd
42-
tools: composer:v2
43-
coverage: none
44-
45-
- name: Install composer dependencies
46-
uses: nick-invision/retry@v1
47-
with:
48-
timeout_minutes: 5
49-
max_attempts: 5
50-
command: composer install
51-
52-
- name: Coding standards
53-
run: composer phpcs
14+
uses: alleyinteractive/.github/.github/workflows/php-coding-standards.yml@main

.github/workflows/phpunit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737

3838
- name: Get Composer cache directory
3939
id: composer-cache
40-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
40+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
4141

4242
- name: Set up Composer caching
4343
uses: actions/cache@v2
@@ -73,7 +73,7 @@ jobs:
7373
- name: Install WordPress and Copy Project
7474
shell: bash
7575
run: |
76-
bash <(curl -s "https://raw.githubusercontent.com/wp-cli/sample-plugin/master/bin/install-wp-tests.sh") wordpress_test root '' 127.0.0.1 latest
76+
bash <(curl -s "https://raw.githubusercontent.com/wp-cli/sample-plugin/HEAD/bin/install-wp-tests.sh") wordpress_test root '' 127.0.0.1 latest
7777
rm -rf "${WP_CORE_DIR}wp-content/plugins"
7878
mkdir -p "${WP_CORE_DIR}wp-content/plugins/wp-component-library"
7979
rsync -a --exclude=.git . "${WP_CORE_DIR}wp-content/plugins/wp-component-library"

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"authors": [
33
{
44
"name": "Alley Interactive",
5-
"email": "noreply@alleyinteractive.com"
5+
"email": "info@alley.com"
66
}
77
],
88
"autoload": {

0 commit comments

Comments
 (0)