Skip to content

change on build

change on build #16

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# 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@v3
with:
fetch-depth: '0'
- name: Setup PHP
id: setup-php
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
tools: php-parallel-lint/php-var-dump-check, parallel-lint, cs2pr, phpcs
- uses: actions/setup-node@v3
with:
node-version: 14.x
registry-url: 'https://registry.npmjs.org'
- name: Print PHP version
run: echo ${{ steps.setup-php.outputs.php-version }}
- name: Run PHPCS
run: phpcs -q --report=checkstyle --standard=codesniffer/ruleset.xml --extensions=php --ignore=*/tx/*,*/vendor/* . | cs2pr --graceful-warnings
- name: Run Parallel Lint
run: parallel-lint --exclude vendor/ .
- name: Run VarDump Check
run: var-dump-check --extensions php --tracy --exclude vendor/ .
- name: Bump version and push tag
uses: Net-Logic/github-dolibarr-action@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO_OWNER: Net-Logic
RELEASE_BRANCH: main
MODULE: prune
CLASSNAME: Prune
RELEASE_BRANCHES: main
DEFAULT_BUMP: none
INITIAL_VERSION: v0.0.0
VERBOSE: true
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Bump version #none