Skip to content

Commit

Permalink
Split workflows (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
mglaman authored Apr 20, 2021
1 parent da34ece commit 1ab089f
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Main workflow
name: integration
on:
workflow_dispatch:
pull_request:
Expand All @@ -12,27 +12,19 @@ on:
paths-ignore:
- '**.md'
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
- run: npm ci
- run: npm test

run:
name: Run
runs-on: ${{ matrix.operating-system }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-latest]
php-version: ['7.4']
drupal-version: ['^9.1']
include:
- php-version: "7.4"
drupal-version: "~8.9"
- php-version: "7.4"
drupal-version: "^9"
- php-version: "8.0"
drupal-version: "^9"
env:
extensions: zip, gd
key: cache-v1
Expand Down Expand Up @@ -70,8 +62,7 @@ jobs:
env:
INPUT_VERSION: ${{ matrix.drupal-version }}
INPUT_PATH: ~/drupal

- name: Verify build
run: test -f ~/drupal/web/index.php
- name: Debug composer.json
run: cat ~/drupal/composer.json
- name: Verify build
run: test -f ~/drupal/web/index.php
25 changes: 25 additions & 0 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: npm
on:
workflow_dispatch:
pull_request:
branches:
- main
paths-ignore:
- '**.md'
push:
branches:
- main
paths-ignore:
- '**.md'
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
- run: npm ci
- run: npm test

0 comments on commit 1ab089f

Please sign in to comment.