Skip to content

Commit

Permalink
ci: add github workflow/action and remove travis ci (SimpleMachines#6500
Browse files Browse the repository at this point in the history
)
  • Loading branch information
live627 authored Feb 9, 2021
1 parent f3619a1 commit 2023d5f
Show file tree
Hide file tree
Showing 7 changed files with 1,048 additions and 26 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: PHP Check

on:
push:
branches:
- '*'
pull_request:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-php-

- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist --no-progress --no-suggest

- run: php -v

- name: Checking for sign off (GPG also accepted)
run: php ./vendor/simplemachines/build-tools/check-signed-off.php

- name: Checking file integrity
run: |
php ./vendor/simplemachines/build-tools/check-eof.php
php ./vendor/simplemachines/build-tools/check-smf-license.php
php ./vendor/simplemachines/build-tools/check-smf-languages.php
php ./vendor/simplemachines/build-tools/check-version.php
- name: Lint PHP files
run: vendor/bin/phplint . --exclude=vendor -w
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,5 @@ Themes/default/scripts/minified.js
Themes/default/css/minified.css
upgrade-helper.php
.vscode/

vendor/
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

9 changes: 7 additions & 2 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
filter:
excluded_paths:
- '*.min.js'
- 'Sources/minify/*'
- 'Sources/ReCaptcha/*'
- 'Sources/minify/'
- 'Sources/random_compat/'
- 'Sources/ReCaptcha/'
dependency_paths:
- 'Sources/minify/'
- 'Sources/random_compat/'
- 'Sources/ReCaptcha/'
checks:
php:
variable_existence: true
Expand Down
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

14 changes: 14 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "simplemachines/smf2.1",
"repositories": [
{
"url": "https://github.com/SimpleMachines/BuildTools.git",
"type": "vcs"
}
],
"minimum-stability": "dev",
"prefer-stable": true,
"require-dev": {
"simplemachines/build-tools": "dev-master"
}
}
Loading

0 comments on commit 2023d5f

Please sign in to comment.