diff --git a/.github/workflows/build_and_check.yml b/.github/workflows/build_and_check.yml new file mode 100644 index 0000000000000000000000000000000000000000..1a0eace51738e17e89f94768804e4899b1ff1889 --- /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 +