diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml new file mode 100644 index 000000000..a7b482063 --- /dev/null +++ b/.github/workflows/continuous-integration.yml @@ -0,0 +1,47 @@ +name: "Continuous Integration" + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +permissions: + contents: read + +jobs: + build_sh: + name: "build.sh" + + runs-on: ubuntu-latest + + strategy: + matrix: + php-version: + - 7.4 + + steps: + - name: "Checkout" + uses: actions/checkout@v3 + + - name: "Install PHP with extensions" + uses: shivammathur/setup-php@master + with: + php-version: ${{ matrix.php-version }} + extensions: "gd, intl, json, mbstring, pdo" + coverage: "xdebug" + + - name: "Cache dependencies installed with composer" + id: composer-cache + uses: actions/cache@v3 + with: + path: vendor + key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-php- + + - name: "Install dependencies with composer" + run: composer install --prefer-dist --no-progress + + - name: "Run Build Script" + run: sh ./build.sh diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a8ab92e8e..000000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: php -dist: trusty -cache: - directories: - - $HOME/.composer/cache/files - - $HOME/.cache/composer/files -matrix: - include: - - php: 7.3 - fast_finish: true -before_script: - - composer install -script: - - ./build.sh diff --git a/README.md b/README.md index 8379f5154..7dee8cf92 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,6 @@ This VM will load all three Joind.in projects (joind.in, joindin-vm and joindin- * The main website https://joind.in * Issues list: https://github.com/joindin/joindin-web2/issues/ (good bug reports ALWAYS welcome!) -* CI Environment: lots of output and information about tests, deploys etc: https://jenkins.joind.in * Community: We hang out on Slack, pop in with questions or comments! You can join via [Joindin Slack](https://join.slack.com/t/joindin/shared_invite/enQtNzY2MTEzOTU3ODkwLTMzNTc3ZDFlNTAxMTc2ZjliYjAzNDExZTkzM2NmZDFjYjcyMjNkMWYzMjNhZjE4MzA1MTljZDk2NzNiMzk5MjU) ## Global .gitignore diff --git a/build.sh b/build.sh index 9b45286ac..36856dbce 100755 --- a/build.sh +++ b/build.sh @@ -11,6 +11,4 @@ vendor/bin/phpcs \ -p \ . -php vendor/bin/security-checker security:check composer.lock - vendor/bin/phpunit -c ./phpunit.xml.dist