Browse code

switch from travis to github actions workflow

Hanno Böck authored on17/10/2021 11:21:07
Showing2 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,22 @@
1
+name: run tests
2
+on:
3
+- pull_request
4
+- push
5
+
6
+jobs:
7
+  run:
8
+    runs-on: ubuntu-latest
9
+    strategy:
10
+      matrix:
11
+        php-versions: ['8.0']
12
+    steps:
13
+    - name: Checkout
14
+      uses: actions/checkout@v2
15
+
16
+    - name: Setup PHP
17
+      uses: shivammathur/setup-php@v2
18
+      with:
19
+        php-version: ${{ matrix.php-versions }}
20
+    - name: Run tests
21
+      run: |
22
+        ./checkcodingstyle
0 23
deleted file mode 100644
... ...
@@ -1,11 +0,0 @@
1
-language: php
2
-php:
3
-  - '7.4'
4
-  - '8.0'
5
-install:
6
-  - wget https://cs.symfony.com/download/php-cs-fixer-v2.phar
7
-  - wget -O local-php-security-checker https://github.com/fabpot/local-php-security-checker/releases/download/v1.0.0/local-php-security-checker_1.0.0_linux_amd64
8
-  - chmod +x local-php-security-checker
9
-script:
10
-  - php php-cs-fixer-v2.phar fix --rules @PSR1,@PSR2,no_whitespace_in_blank_line --dry-run --diff .
11
-  - ./local-php-security-checker