-
-
Notifications
You must be signed in to change notification settings - Fork 241
41 lines (38 loc) · 1.03 KB
/
unit.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
name: Unit Tests
on:
workflow_dispatch:
env:
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
TEST_CHANNEL: ${{ secrets.TEST_CHANNEL }}
TEST_CHANNEL_NAME: ${{ secrets.TEST_CHANNEL_NAME }}
jobs:
unit-lint:
name: PHPUnit and Lint
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'no test')"
concurrency: phpunit
strategy:
matrix:
php:
- '8.2'
- '8.1'
- '8.0'
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: uv, zlib, mbstring
tools: phpunit, phplint
- name: Install dependencies
run: composer install
- name: Redis Server in GitHub Actions
uses: supercharge/[email protected]
# - name: Memcached Service
# uses: niden/actions-memcached@v7
- name: Run PHPUnit
run: phpunit
- name: Run PHPLint
run: phplint