-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 1.11 KB
/
build.yml
File metadata and controls
38 lines (35 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Faslet Composer Module
on:
push:
branches: [main]
pull_request:
branches: [main]
release:
types: [published]
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: nanasess/setup-php@master
with:
php-version: '7.4'
- name: Run Composer Install
run: composer install --no-interaction
- name: Run Tests
run: vendor/bin/phpunit --testdox tests
- name: Slack Message
if: startsWith(github.ref, 'refs/tags/')
uses: dgoemans/slack-action@1.0.1
env:
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
with:
title: ${{ github.workflow }}
title_link: "https://github.com/${{ github.repository }}"
channel: "releases"
text: |
Release *PHP Module* :tada:
Version: *<https://github.com/${{ github.repository }}/releases/tag/${{ github.event.release.tag_name }}|${{ github.event.release.tag_name }}>*
${{ github.event.release.name }}
*Release notes:*
${{ github.event.release.body }}