-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (37 loc) · 972 Bytes
/
tests.yml
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: tests
on:
push:
branches:
- '*'
tags-ignore:
- '*'
defaults:
run:
shell: bash
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
drupal_version: ['10.1', '10.2', '10.3', '11.x']
steps:
- name: Create project
run: |
composer create-project --ignore-platform-reqs mstrelan/drupal-contrib:dev-${{ github.ref_name }}
- name: Initialise environment
run: |
cd drupal-contrib
make ${{ matrix.drupal_version }}
- name: Setup homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Setup bats
run: |
brew tap kaos/shell
brew install bats-support bats-assert bats-file
- name: Run tests
env:
DRUPAL_VERSION: ${{ matrix.drupal_version == '11.x' && '11.0-dev' || matrix.drupal_version }}
run: |
cd drupal-contrib
bats tests