-
Notifications
You must be signed in to change notification settings - Fork 15
54 lines (40 loc) · 1.32 KB
/
ci.yaml
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
# SPDX-FileCopyrightText: 2023 Friedrich-Alexander-Universitat Erlangen-Nurnberg
#
# SPDX-License-Identifier: AGPL-3.0-only
name: CI
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
ci:
name: CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v1
- uses: actions/setup-node@v3
with:
node-version: 'lts/*'
- name: Install dependencies
run: npm ci
- uses: nrwl/nx-set-shas@v3
- name: Langium generate
run: npm run generate
- name: Build
run: npx nx affected --target=build --verbose --parallel=1 --configuration=prod
- name: Lint
run: npx nx affected --target=lint --verbose --parallel=1 --maxWarnings=0
- name: Test
run: npx nx affected --target=test --verbose --parallel=1 --base=remotes/origin/main --head=HEAD --ci
# Ensure this works for future release publishing
- name: Publish Dry-Run
run: npx nx affected --target=pre-publish --verbose --parallel=1 --base=remotes/origin/main --head=HEAD --ci
# Ensure this works for future release publishing
- name: Pack VSCode Extension
run: npx nx run vs-code-extension:pack:prod