Skip to content
This repository was archived by the owner on May 27, 2024. It is now read-only.

Commit eb0b5d2

Browse files
committed
Add pre-commit and CI action for prettier + reuse
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
1 parent 0913b0a commit eb0b5d2

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

.github/workflows/test.yaml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# SPDX-FileCopyrightText: 2023 Coop IT Easy SC <https://coopiteasy.be>
2+
#
3+
# SPDX-License-Identifier: CC-BY-SA-4.0
4+
5+
name: Test suites
6+
7+
on:
8+
push:
9+
branches:
10+
- main
11+
pull_request:
12+
13+
jobs:
14+
prettier:
15+
runs-on: ubuntu-20.04
16+
container: node:latest
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Install prettier
20+
run: npm install [email protected]
21+
- name: Run prettier
22+
run: npx prettier --check .
23+
24+
reuse:
25+
runs-on: ubuntu-20.04
26+
steps:
27+
- uses: actions/checkout@v2
28+
- name: Set up Python
29+
uses: actions/setup-python@v2
30+
- name: Install dependencies
31+
run: pip install reuse
32+
- name: Test REUSE compliance
33+
run: reuse lint

.pre-commit-config.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# SPDX-FileCopyrightText: 2018 Free Software Foundation Europe e.V. <https://fsfe.org>
2+
#
3+
# SPDX-License-Identifier: CC-BY-SA-4.0
4+
5+
repos:
6+
- repo: https://github.com/pre-commit/mirrors-prettier
7+
rev: v2.7.1
8+
hooks:
9+
- id: prettier
10+
name: prettier
11+
12+
- repo: https://github.com/fsfe/reuse-tool
13+
rev: main
14+
hooks:
15+
- id: reuse

0 commit comments

Comments
 (0)