-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (41 loc) · 1020 Bytes
/
main.yml
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
39
40
41
name: blockchyp-php
on:
push:
branches:
- "develop"
- "master"
- "preview"
tags:
- "*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
jobs:
build:
runs-on: ubuntu-latest
container:
image: php:7.4
steps:
- uses: act10ns/slack@v1
with:
status: starting
channel: '#gitactivity'
if: always()
- name: Check out repository code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Update APT
run: apt update -y
- name: Install Curl
run: apt install curl git -y
- name: Install Composer
run: curl -sS https://getcomposer.org/installer | php
- run: php composer.phar self-update
- run: php composer.phar install -n --prefer-dist
- run: make build
- uses: act10ns/slack@v1
with:
status: ${{ job.status }}
channel: '#gitactivity'
if: always()