-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (45 loc) · 1.17 KB
/
npm-build-app.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
name: NodeJS build App
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
# strategy:
# matrix:
# node-version: [16.x, 18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: Install dependencies
run: yarn
- name: Run lint code
run: yarn run lint
- name: Compile application to binary
run: yarn run build
- name: Archive binary
uses: actions/upload-artifact@v3
with:
name: helm-assistant-linux-amd64
path: helm-assistant
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
with:
name: helm-assistant-linux-amd64
path: helm-assistant
- name: Start minikube
uses: medyagh/setup-minikube@master
- name: Try the cluster !
run: kubectl get pods -A
- name: Run test -> deploy_worker
run: |
export HELM_ASSISTANT_BIN_CMD="./helm-assistant"
export TESTS_PWD=$(pwd)/tests/
bash tests/deploy_worker.sh