-
Notifications
You must be signed in to change notification settings - Fork 9
34 lines (34 loc) · 1.15 KB
/
ci.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
name: Self update testing
on: [push, pull_request]
jobs:
# Checkout in separate job because docker image is alpine based and checkout action doesn't work.
functional:
runs-on: ubuntu-latest
defaults:
run:
working-directory: self-update-fixture
container:
image: quay.io/pantheon-public/php-ci:v8.2
name: Run functional tests
steps:
- name: Checkout
uses: actions/checkout@v2
with:
path: self-update
- name: Checkout self-update-fixtures
uses: actions/checkout@v2
with:
repository: consolidation/self-update-fixture
path: self-update-fixture
ref: self-update
- name: Run Composer Install
run: composer install
- name: Add path repository
run: composer config repositories.self-update path ../self-update
- name: Require self-update package
run: COMPOSER_MIRROR_PATH_REPOS=1 composer require consolidation/self-update:"*"
- name: Phar Build
run: composer phar:build
- name: Run tests
run: ./.github/workflows/test.sh ../self-update-fixture
working-directory: self-update