-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (31 loc) · 1.13 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
# CI workflow used for code quality checks and to ensure that a PR can be built.
# Future tests might also be executed by this workflow.
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
name: Run eslint and test and build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}
- uses: actions/setup-node@v2
with:
node-version: 14.x
- run: yarn
- run: yarn package
- run: yarn lint
- name: Attach KIELER VS Code Extension (no server)
uses: actions/upload-artifact@v4
with:
name: KIELER VS Code Extension (no server)
path: keith-vscode/keith-vscode.vsix
if-no-files-found: error