From 606db983969fbcfd400d0537a3d4c4f1dc9ed1aa Mon Sep 17 00:00:00 2001 From: Dominik Frantisek Bucik <bucik@ics.muni.cz> Date: Mon, 9 Aug 2021 14:05:11 +0200 Subject: [PATCH] chore: Added CI workflow --- .github/workflows/build_and_check.yml | 52 +++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .github/workflows/build_and_check.yml diff --git a/.github/workflows/build_and_check.yml b/.github/workflows/build_and_check.yml new file mode 100644 index 0000000..1a0eace --- /dev/null +++ b/.github/workflows/build_and_check.yml @@ -0,0 +1,52 @@ +# This workflow will install Python dependencies, run tests and lint with a variety of Python versions +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + php-version: [7.4, 8.0] + + steps: + - uses: actions/checkout@v2 + - name: Cache Composer dependencies + uses: actions/cache@v2 + with: + path: /tmp/composer-cache + key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} + - name: Install dependencies + uses: php-actions/composer@v5 + with: + php_version: ${{ matrix.php-version }} + version: 2 + php_extensions: json + - name: Run easy coding standard + run: vendor/bin/ecs check + release: + name: Release + needs: [build] + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Setup Node.js + uses: actions/setup-node@v1 + with: + node-version: 14 + - name: Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: npm install && npx semantic-release + -- GitLab