33 lines
509 B
YAML
33 lines
509 B
YAML
|
# SPDX-FileCopyrightText: 2023 Johannes Loher
|
||
|
#
|
||
|
# SPDX-License-Identifier: MIT
|
||
|
|
||
|
variables:
|
||
|
- &node_image node:lts
|
||
|
|
||
|
when:
|
||
|
- event: push
|
||
|
- event: tag
|
||
|
- event: manual
|
||
|
|
||
|
steps:
|
||
|
install:
|
||
|
image: *node_image
|
||
|
commands:
|
||
|
- yarn install --immutable
|
||
|
lint:
|
||
|
group: test
|
||
|
image: *node_image
|
||
|
commands:
|
||
|
- yarn lint
|
||
|
reuse:
|
||
|
group: test
|
||
|
image: fsfe/reuse:latest
|
||
|
commands:
|
||
|
- reuse lint
|
||
|
build:
|
||
|
group: build
|
||
|
image: *node_image
|
||
|
commands:
|
||
|
- yarn build
|