diff --git a/.github/workflows/grumphp.yaml b/.github/workflows/grumphp.yaml new file mode 100644 index 0000000..a156f31 --- /dev/null +++ b/.github/workflows/grumphp.yaml @@ -0,0 +1,22 @@ +name: GrumPHP +on: [push] +jobs: + linter: + strategy: + matrix: + image: [ + 'srcoder/development-php:php82-fpm' + ] + runs-on: ubuntu-latest + container: + image: ${{ matrix.image }} + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: GrumPHP + run: | + composer2 config http-basic.repo.magento.com ${{ secrets.MAGENTO_USERNAME }} ${{ secrets.MAGENTO_PASSWORD }} + composer2 install --dev --prefer-dist --no-scripts --no-progress --optimize-autoloader --no-interaction -vvv + composer2 show + vendor/bin/grumphp run --no-interaction + shell: bash diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..a5cfbf6 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,31 @@ +name: Release + +on: + push: + branches: + - master + +jobs: + release: + runs-on: ubuntu-latest + + permissions: + contents: write + + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + steps: + - name: Checkout Git repository + uses: actions/checkout@v3 + + - name: Use Node.js 20 + uses: actions/setup-node@v3 + with: + node-version: 20 + + - name: Install semantic-release + run: npm install -g semantic-release @semantic-release/changelog @semantic-release/git @semantic-release/exec + + - name: Run semantic-release + run: semantic-release