-
Notifications
You must be signed in to change notification settings - Fork 23
53 lines (42 loc) · 1.16 KB
/
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
46
47
48
49
50
51
52
name: Bash tests
on:
push:
branches:
- feature/add-testing-base
pull_request:
branches:
- feature/add-testing-base
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
tools: composer
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Show debug information
run: |
php --version
echo "composer.json contents:"
cat composer.json
- name: Configure git
run: |
git config --global user.email "nobody@example.com"
git config --global user.name "GitHub testing bot"
- name: Donwload shellspec
run: |
wget https://github.com/shellspec/shellspec/releases/download/0.28.1/shellspec-dist.tar.gz
tar xfvz shellspec-dist.tar.gz
- name: Run composer
run: |
composer install --ignore-platform-reqs
composer boilerplate:assistant
- name: Run tests
run: |
pwd
shellspec/shellspec