-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (51 loc) · 1.87 KB
/
feature.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
name: Feature
on:
push:
branches: [feature/**/*, feature/*]
env:
NX_BRANCH: ${GITHUB_REF##*/}
jobs:
Feature:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: nrwl/nx-set-shas@v4
- name: 📦 Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 21
cache: 'npm'
- name: 📦 Install NX-Linux
run: npm install @nx/nx-linux-x64-gnu
- name: 📦 Install dependencies
run: npm install
- name: 🚀 Check Format
run: npm run nx format:check
- name: 🚀 Lint Apps
run: npm run nx affected:lint --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }} --parallel --maxParallel=3
- name: 🚀 Test Apps
run: npm run nx affected:test --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }} --parallel --maxParallel=3
- name: 🚀 e2e Apps
run: npm run nx affected:e2e --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }} --parallel --maxParallel=3
- name: 🚀 Build Apps
run: npm run nx affected:build --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }} --parallel --maxParallel=3
- name: 🪐 Patch version for each merge
id: taggerDryRun
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
WITH_V: true
DEFAULT_BUMP: patch
PRE_RELEASE: true
- name: 🪐 Output Tag
run: |
echo "${{ steps.taggerDryRun.outputs.new_tag }}"
- name: API Alerts Notify
uses: apialerts/notify-action@v1
with:
api_key: ${{ secrets.API_ALERTS_KEY }}
message: '🚢 Feature - New Patch Released (${{ steps.taggerDryRun.outputs.new_tag }})'
tags: 'Azkaban,Feature'
link: 'https://api.toxictoast.de/swagger'