Skip to content

Commit a914258

Browse files
add workflow to test invalid env vars
1 parent 6667a7b commit a914258

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/ci-invalid-env.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build-test:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v3
11+
12+
- name: Set up invalid environment variable
13+
run: |
14+
echo 'MULTI_LINE_ENV<<EOF' >> $GITHUB_ENV
15+
echo 'MULTI_LINE_ENV=LINE 1' >> $GITHUB_ENV
16+
echo 'LINE 2' >> $GITHUB_ENV
17+
echo 'LINE 3' >> $GITHUB_ENV
18+
echo 'LINE 4' >> $GITHUB_ENV
19+
echo 'EOF' >> $GITHUB_ENV
20+
21+
- uses: php-actions/composer@v6
22+
23+
- name: PHPUnit Tests
24+
uses: php-actions/phpunit@master
25+
env:
26+
TEST_NAME: Scarlett
27+
with:
28+
version: 9.6
29+
bootstrap: vendor/autoload.php
30+
configuration: test/phpunit.xml
31+
args: --coverage-text

0 commit comments

Comments
 (0)