Skip to content

Commit

Permalink
Added github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jansentjeu committed Sep 6, 2024
1 parent 256148f commit bc8ab8f
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/grumphp.yaml
Original file line number Diff line number Diff line change
@@ -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
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit bc8ab8f

Please sign in to comment.