Skip to content

Commit cae8cc0

Browse files
Initial repo config (#1)
* ignore package-lock.json * update readme * minor readme update * delete gitlab CI file * add some initial github config * change master -> main * remove old release nmae * update bundle action * delete codeowners file * a few more readme updates * remove documentation
1 parent bdf6484 commit cae8cc0

23 files changed

+276
-1712
lines changed

.github/workflows/bundle.yml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: Bundle UI
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
8+
jobs:
9+
setup:
10+
runs-on: ubuntu-latest
11+
container:
12+
image: node:10.14.2-stretch
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v2
17+
18+
- name: Cache .cache/npm
19+
uses: actions/cache@v2
20+
with:
21+
path: .cache/npm
22+
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
23+
restore-keys: |
24+
${{ runner.os }}-npm-
25+
26+
- name: Install dependencies
27+
run: npm install --quiet --no-progress --cache=.cache/npm
28+
29+
verify:
30+
needs: setup
31+
runs-on: ubuntu-latest
32+
container:
33+
image: node:10.14.2-stretch
34+
35+
steps:
36+
- name: Checkout code
37+
uses: actions/checkout@v2
38+
39+
- name: Use cached .cache/npm
40+
uses: actions/cache@v2
41+
with:
42+
path: .cache/npm
43+
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
44+
restore-keys: |
45+
${{ runner.os }}-npm-
46+
47+
- name: Lint
48+
run: node_modules/.bin/gulp lint
49+
50+
deploy:
51+
if: github.ref == 'refs/heads/main'
52+
needs: verify
53+
runs-on: ubuntu-latest
54+
container:
55+
image: node:10.14.2-stretch
56+
57+
steps:
58+
- name: Checkout code
59+
uses: actions/checkout@v2
60+
61+
- name: Use cached .cache/npm
62+
uses: actions/cache@v2
63+
with:
64+
path: .cache/npm
65+
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
66+
restore-keys: |
67+
${{ runner.os }}-npm-
68+
69+
- name: Bundle
70+
run: node_modules/.bin/gulp bundle
71+
72+
- name: Upload ui-bundle.zip
73+
uses: actions/upload-artifact@v2
74+
with:
75+
name: ui-bundle.zip
76+
path: build/ui-bundle.zip

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/build/
22
/node_modules/
33
/public/
4+
/package-lock.json

.gitlab-ci.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)