pitscher / ovh-deploy-hosting-action Goto Github PK
View Code? Open in Web Editor NEWA GitHub Action to deploy the contents of a repository to an OVH Hosting Plan (with SSH support)
License: GNU General Public License v3.0
A GitHub Action to deploy the contents of a repository to an OVH Hosting Plan (with SSH support)
License: GNU General Public License v3.0
Hi, I would like to push code of my project inside VM instead the repository URL. I have this code:
name: Tests
on: [push]
jobs:
php-unit-and-functional-tests:
runs-on: ubuntu-20.04
strategy:
fail-fast: true
matrix:
php-versions: ['8.0']
steps:
# —— Setup Github actions
# https://github.com/actions/checkout (official)
- name: Git checkout placeholder-service
uses: actions/checkout@v2
# https://github.com/shivammathur/setup-php (community)
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: none
tools: composer:v2
extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite, dom, filter, gd, iconv, json, mbstring, pdo
env:
update: true
- name: Check PHP Version
run: php -v
# —— Composer
- name: Validate composer.json and composer.lock
run: composer validate
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache composer dependencies
uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install Composer dependencies
run: composer install
# —— Symfony
- name: Check Symfony requirements
run: vendor/bin/requirements-checker
- name: Check the Symfony console
run: php bin/console -V
# —— Code style —— (Based on this package: https://github.com/OskarStark/php-cs-fixer-ga)
- name: PHP-CS-Fixer
uses: docker://oskarstark/php-cs-fixer-ga
with:
args: --config=.php-cs-fixer.dist.php --diff --dry-run
## —— Tests
- name: Run functionnal and unit tests
run: |
cp .env.ci .env.test
cp .env.ci .env
cp phpunit.ci.xml phpunit.xml
composer test
How can I add or modify the entrypoint for push with this action ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.