We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7ebebfc + e952509 commit fb283f4Copy full SHA for fb283f4
.github/workflows/test.yml
@@ -0,0 +1,29 @@
1
+name: Run Tests
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - "*"
7
+ pull_request:
8
+ branches: [ master ]
9
10
+jobs:
11
+ build:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v2
15
+ - name: Validate composer.json and composer.lock
16
+ run: composer validate
17
+ - name: Cache Composer packages
18
+ id: composer-cache
19
+ uses: actions/cache@v2
20
+ with:
21
+ path: vendor
22
+ key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
23
+ restore-keys: |
24
+ ${{ runner.os }}-php-
25
+ - name: Install dependencies
26
+ if: steps.composer-cache.outputs.cache-hit != 'true'
27
+ run: composer install --no-progress --no-suggest
28
+ - name: Run unit tests
29
+ run: vendor/bin/codecept run unit
0 commit comments