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

Commit

Permalink
Add pre-commit and CI action for prettier + reuse
Browse files Browse the repository at this point in the history
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
  • Loading branch information
carmenbianca committed Oct 17, 2023
1 parent 0913b0a commit 732bd82
Show file tree
Hide file tree
Showing 3 changed files with 282 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# SPDX-FileCopyrightText: 2019 Free Software Foundation Europe e.V. <https://fsfe.org>
# SPDX-FileCopyrightText: 2022 Carmen Bianca Bakker <[email protected]>
# SPDX-FileCopyrightText: 2023 Coop IT Easy SC <https://coopiteasy.be>
#
# SPDX-License-Identifier: GPL-3.0-or-later

name: Test suites

on:
push:
branches:
- main
pull_request:

jobs:
prettier:
runs-on: ubuntu-20.04
container: node:latest
steps:
- uses: actions/checkout@v2
- name: Install prettier
run: npm install [email protected]
- name: Run prettier
run: npx prettier --check .

reuse:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
- name: Install dependencies
run: pip install reuse
- name: Test REUSE compliance
run: reuse lint
15 changes: 15 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# SPDX-FileCopyrightText: 2018 Free Software Foundation Europe e.V. <https://fsfe.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later

repos:
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
hooks:
- id: prettier
name: prettier

- repo: https://github.com/fsfe/reuse-tool
rev: main
hooks:
- id: reuse
Loading

0 comments on commit 732bd82

Please sign in to comment.