Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add github workflow/action and remove travis ci #6500

Merged
merged 2 commits into from
Feb 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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