1.0.6 #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build TelegramNotifier | |
on: | |
push: | |
pull_request: | |
jobs: | |
php-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: PHP Syntax Check | |
run: | | |
find . -name "*.php" -print0 | xargs -0 -n1 php -l | |
if [ $? -ne 0 ]; then | |
echo "PHP syntax check failed" | |
exit 1 | |
fi | |
markdown-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Lint Markdown files | |
uses: DavidAnson/markdownlint-cli2-action@v19 | |
with: | |
globs: '**/*.md' # Checks all Markdown files in the repository | |
fix: true # automatically fixes simple problems | |
config: '.markdownlint.jsonc' # if you have a configuration file | |
# continue-on-error: true # to prevent the build from crashing due to errors in the documentation | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Create directory | |
run: mkdir TelegramNotifier | |
- name: Move files | |
run: mv LICENSE README.md TelegramNotifier.php config.xml index.php logo.png TelegramNotifier | |
- name: Create ZIP archive | |
run: zip -r TelegramNotifier.zip TelegramNotifier | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: TelegramNotifier | |
path: TelegramNotifier.zip |