From fc61bd66d8bcfc755ab47a096a2abb079253a8ae Mon Sep 17 00:00:00 2001 From: sayaghi <45101821+sayaghi@users.noreply.github.com> Date: Sat, 6 Jun 2020 20:07:07 +0300 Subject: [PATCH 1/2] Create php.sayaghi --- .github/workflows/php.sayaghi | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/php.sayaghi diff --git a/.github/workflows/php.sayaghi b/.github/workflows/php.sayaghi new file mode 100644 index 000000000..7d32e0e46 --- /dev/null +++ b/.github/workflows/php.sayaghi @@ -0,0 +1,37 @@ +name: PHP sayaghi + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Validate composer.json and composer.lock + run: composer validate + + - name: Cache Composer packages + id: composer-cache + uses: actions/cache@v2 + with: + path: vendor + key: ${{ runner.os }}-node-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Install dependencies + if: steps.composer-cache.outputs.cache-hit != 'true' + run: composer install --prefer-dist --no-progress --no-suggest + + # Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit" + # Docs: https://getcomposer.org/doc/articles/scripts.md + + # - name: Run test suite + # run: composer run-script test From 5098772a5c4cb80316b9a50a8309acb8eacd790a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D8=B3=D9=8A=D8=A7=D8=BA=D9=8A=20=D9=85=D8=AD=D9=85=D8=AF?= =?UTF-8?q?=20=D8=A7=D8=AD=D9=85=D8=AF=20=D9=86=D9=82=D9=8A=D8=A8?= Date: Sat, 20 Jun 2020 21:00:33 +0300 Subject: [PATCH 2/2] sayaghi --- .github/workflows/main.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..d6783e218 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,33 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! + + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project.