-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (45 loc) · 1.38 KB
/
smokes.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
name: Smoke Tests
on:
push:
branches:
- main
tags:
- 'v*'
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
php:
- '7.4'
- '8.1'
deps:
- highest
- lowest
fail-fast: true
name: PHP ${{ matrix.php }} / ${{ matrix.deps }}
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@d30ad8b1843ace22e6698ab99bbafaa747b6bd0d
with:
php-version: ${{ matrix.php }}
- name: Cache dependencies
uses: actions/cache@v1
with:
path: ~/.composer/cache
key: ${{ runner.os }}-composer-${{ hashFiles('composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: Enable assertions
run: echo 'zend.assertions=1' | sudo tee /etc/php/${{ matrix.php }}/cli/conf.d/assert.ini >/dev/null
- name: "Issue #18"
run: |
export COMPOSER_CACHE_DIR="$(composer global config cache-dir)"
export COMPOSER_HOME="$(mktemp -d)"
composer global config allow-plugins.cs278/composer-audit true
composer global config repositories.0 path "$(pwd)"
composer global require cs278/composer-audit:@dev
cd "$(mktemp -d)"
composer require --no-install cs278/mktemp
composer security-audit -vvv