This repository has been archived by the owner on Nov 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
71 lines (70 loc) · 2.02 KB
/
whmcs.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Release
on:
# will run for every branch, except tags. See RSRMID-206.
push:
# Sequence of patterns matched against refs/heads
branches:
- '**'
# Sequence of patterns matched against refs/tags
tags-ignore:
- '**'
pull_request:
branches:
- '**'
tags-ignore:
- '**'
jobs:
test:
name: Test @ PHP ${{ matrix.php-version }} - x86 - ubuntu-latest
if: github.event_name == 'pull_request' || (github.event_name == 'push' && github.actor != 'dependabot[bot]')
strategy:
matrix:
php-version:
- 7.4
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Dependencies::PHP${{ matrix.php-version }}
run: |
echo "$HOME/.composer/vendor/bin" >> $GITHUB_PATH
composer global require squizlabs/php_codesniffer
- name: Setup NodeJS LTS
uses: actions/setup-node@v3
with:
node-version: lts/*
check-latest: true
- name: Install dependencies
run: npm ci
- name: Formatting check
run: |
gulp prettierCheck
gulp lint
release:
name: Release @ NodeJS LTS - x86 - ubuntu-latest
runs-on: ubuntu-latest
needs:
- test
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
submodules: recursive
- name: Setup NodeJS LTS
uses: actions/setup-node@v3
with:
node-version: lts/*
check-latest: true
- name: Install dependencies
run: npm ci
- name: Release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
WHMCSMP_LOGIN: ${{ secrets.WHMCSMP_LOGIN }}
WHMCSMP_PASSWORD: ${{ secrets.WHMCSMP_PASSWORD }}
WHMCSMP_PRODUCTID: ${{ secrets.WHMCSMP_PRODUCTID }}
run: npx semantic-release