-
Notifications
You must be signed in to change notification settings - Fork 22
41 lines (39 loc) · 1.09 KB
/
elasticlib-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
name: ElasticLib
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
jobs:
wpiformat-analyze:
name: "Verify Formatting"
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fetch all history and metadata
run: |
git checkout -b pr
git branch -f main origin/main
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install wpiformat
run: pip3 install wpiformat==2024.44
- name: Format Java
run: wpiformat -f Elastic.java
working-directory: ./elasticlib
- name: Format C++ Header
run: wpiformat -f elasticlib.h
working-directory: ./elasticlib
- name: Format C++ source
run: wpiformat -f elasticlib.cpp
working-directory: ./elasticlib
- name: Format Python
run: wpiformat -f elasticlib.py
working-directory: ./elasticlib
- name: Check output
run: git --no-pager diff --exit-code HEAD