This repository has been archived by the owner on Nov 25, 2024. It is now read-only.
forked from adempiere/adempiere-vue
-
Notifications
You must be signed in to change notification settings - Fork 6
70 lines (55 loc) · 1.79 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# This workflow will run tests using node and then publish a package to GitHub Container Registry and Docker Hub Regitry when a pushed into main branches
# This file was contributed by [email protected] from ERP Consultores y Asociados, C.A
name: Continuous Integration
on:
# Triggers the workflow on push events but only for the develop branch
push:
branches:
- '*' # matches every branch that doesn't contain a '/'
- '*/*' # matches every branch containing a single '/'
- '**' # matches every branch
paths-ignore:
- README.md
- README.es.md
- 'docs/**'
- .github/workflows/docs.yml
- .github/**.md # Templates
pull_request:
paths-ignore:
- README.md
- README.es.md
- 'docs/**'
- .github/workflows/docs.yml
- .github/**.md # Templates
jobs:
# Build dist application ADempiere-Vue
build-app:
name: Build dist adempiere-vue
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Node configuration
uses: actions/setup-node@v3
with:
node-version: 14.x
cache: 'yarn'
- name: Enable https to install packages
run: git config --global url."https://".insteadOf git://
# - name: Install packages lerna
# run: yarn global add lerna
# - name: Update sub module
# run: git submodule update --init --remote
- name: Install packages
run: yarn ci
- name: Run Linter
run: yarn lint
# - name: Run Unit Test
# run: test:unit
- name: Compile dist
run: yarn build:prod
- name: Upload dist app
uses: actions/upload-artifact@v3
with:
name: adempiere-vue
path: dist