-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (45 loc) · 1.03 KB
/
ci.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
name: CI Workflow
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
lint_and_test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install deps
run: npm install
- name: lint code
run: npm run lint
continue-on-error: true
- name: Run Test
run: npm test
continue-on-error: true
conditional_deploy:
needs: lint_and_test
runs-on: ubuntu-latest
if: ${{ success() }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Deploy
run: |
echo "Deploying KEAYSXYZ..."
manual_trigger:
runs-on: ubuntu-latest
needs: conditional_deploy
if: ${{ failure() }}
steps:
- name: Wait for manual re-run
uses: hmarr/auto-approve-action@v4
with:
github-token: ${{ secrets.GITHUB_TOKE }}