forked from eclipse-che4z/che-che4z-explorer-for-endevor
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (44 loc) · 1.13 KB
/
ci-workflow.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
name: E4E CI Workflow
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
env:
PROJECT_NAME: explorer-for-endevor
jobs:
build-test-artifact:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Audit
run: yarn audit --level high || exit 0
id: audit
- name: Lint
run: yarn lint
- name: Build E4E
run: yarn workspace ${{ env.PROJECT_NAME }} build:dev
- name: Run tests
uses: GabrielBB/xvfb-action@v1.0
id: tests
with:
run: yarn test
- name: Package VSIX & Upload Artifact
run: |
yarn copy-into-build-context
yarn workspace ${{ env.PROJECT_NAME }} package
- uses: actions/upload-artifact@v2
env:
VSIX_PATH: packages/${{ env.PROJECT_NAME }}/vsce/*.vsix
with:
name: ${{ env.PROJECT_NAME }}
path: ${{ env.VSIX_PATH }}