This repository has been archived by the owner on Sep 16, 2023. It is now read-only.
forked from adempiere/adv-default-theme
-
Notifications
You must be signed in to change notification settings - Fork 3
61 lines (49 loc) · 1.68 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
# 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
pull_request:
paths-ignore:
- README.md
- README.es.md
jobs:
# Publish docker image in Github Container Registry to application
# Build dist application adv-default-theme
build-app:
name: Build dist adv-default-theme
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
run: yarn ci
- name: Run Linter
run: yarn lint
- name: Compress files for application dist
uses: TheDoctor0/[email protected]
with:
type: 'zip'
filename: 'adv-default-theme.zip'
path: './'
exclusions: './dist ./docker ./docs'
- name: Upload app as artifact
uses: actions/upload-artifact@v3
with:
name: adv-default-theme
path: ./adv-default-theme.zip