-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1.08 KB
/
branch-cicd.yaml
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
# 🏃♀️ Continuous Integration and Delivery: Branch Testing
# ======================================================
---
name: 🔁 Branch integration testing
# Driving Event
# -------------
#
# What event starts this workflow: a push to any branch other than main
on:
push:
branches:
- '**'
- '!main'
# What to Do
# ----------
#
# Test the software with tox
jobs:
branch-testing:
name: 🪵 Branch Testing
runs-on: ubuntu-latest
if: github.actor != 'pdsen-ci'
steps:
-
name: 💳 Checkout
uses: actions/checkout@v3
with:
lfs: true
fetch-depth: 0
token: ${{secrets.ADMIN_GITHUB_TOKEN}}
-
name: 🟢 Setup up Node
uses: actions/setup-node@v4
with:
node-version: 'latest'
-
name: 🩺 Test Software
run:
npm clean-install
npm test
...