Skip to content

Commit

Permalink
add basic ci
Browse files Browse the repository at this point in the history
  • Loading branch information
louwers committed Oct 17, 2024
1 parent 2af9856 commit 22bb4cd
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: ci

on:
push:
branches:
- main

pull_request:
branches:
- main

jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cmake -S . -B build
- run: cmake --build build
- run: build/test
- run: build/test_value
16 changes: 16 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
args: [--allow-multiple-documents]
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v19.1.1
hooks:
- id: clang-format
files: '.*\.(hpp|cpp|h)'
- repo: https://github.com/Mateusz-Grzelinski/actionlint-py
rev: v1.7.3.17
hooks:
- id: actionlint
additional_dependencies: [shellcheck-py]

0 comments on commit 22bb4cd

Please sign in to comment.