Skip to content

Commit 606fcb1

Browse files
committed
Replace gitlab ci with github ci
1 parent 5c24b98 commit 606fcb1

File tree

2 files changed

+63
-55
lines changed

2 files changed

+63
-55
lines changed

.github/workflows/ci.yaml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
---
2+
name: ci
3+
4+
on:
5+
push:
6+
branches:
7+
- 'main'
8+
workflow_dispatch:
9+
pull_request:
10+
types: [opened, synchronize, reopened, ready_for_review]
11+
12+
concurrency:
13+
group: ${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
lint:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v3
21+
- uses: actions/setup-node@v3
22+
with:
23+
node-version: 10
24+
cache: npm
25+
- run: |
26+
npm install
27+
node_modules/.bin/gulp lint
28+
bundle-stable:
29+
if: ${{ github.event_name == 'push' }}
30+
needs: lint
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v3
34+
- uses: actions/setup-node@v3
35+
with:
36+
node-version: 10
37+
cache: npm
38+
- run: |
39+
npm install
40+
node_modules/.bin/gulp bundle
41+
- uses: actions/upload-artifact@v3
42+
with:
43+
name: ui-bundle.zip
44+
path: build/ui-bundle.zip
45+
bundle-dev:
46+
if: ${{ github.event_name != 'push' }}
47+
needs: lint
48+
runs-on: ubuntu-latest
49+
steps:
50+
- uses: actions/checkout@v3
51+
- uses: actions/setup-node@v3
52+
with:
53+
node-version: 10
54+
cache: npm
55+
- run: |
56+
npm install
57+
node_modules/.bin/gulp bundle
58+
- uses: actions/upload-artifact@v3
59+
with:
60+
name: ui-bundle.zip
61+
path: build/ui-bundle.zip
62+
retention-days: 1
63+
...

.gitlab-ci.yml

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

0 commit comments

Comments
 (0)