Skip to content

Commit 60514d7

Browse files
committed
Cleaning up the test action file. Removed the install and fixing the format check
1 parent 21e8504 commit 60514d7

File tree

1 file changed

+12
-23
lines changed

1 file changed

+12
-23
lines changed

.github/workflows/tests.yml

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,51 +2,40 @@ name: Libdbc Tests
22

33
on:
44
push:
5-
branches: [ "master" ]
5+
branches:
6+
- "master"
67
pull_request:
78

89
env:
910
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
1011
BUILD_TYPE: Release
1112

1213
jobs:
13-
build:
14+
build-and-test:
1415
runs-on: ubuntu-latest
1516

1617
steps:
1718
- uses: actions/checkout@v3
1819

19-
- name: install fast_float dependency
20-
run: |
21-
cd ${{github.workspace}}
22-
git clone https://github.com/fastfloat/fast_float.git
23-
mkdir fast_float/build
24-
cd fast_float/build
25-
cmake -DCMAKE_INSTALL_PREFIX="${{github.workspace}}/installation" ..
26-
make install
27-
2820
- name: Configure CMake
29-
run: |
30-
mkdir build
31-
cd build
32-
cmake -DFastFloat_DIR="${{github.workspace}}/installation/share/cmake/FastFloat" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} ..
21+
run: cmake -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -Bbuild -H.
3322

34-
- name: Build
23+
- name: Build the library
3524
run: |
3625
cd build
37-
make
26+
make -j$(nproc)
3827
39-
- name: Test
28+
- name: Run unit tests
4029
run: |
4130
cd build
4231
ctest --output-on-failure
4332
44-
format:
33+
format-check:
4534
runs-on: ubuntu-latest
35+
4636
steps:
4737
- uses: actions/checkout@v3
48-
- name: Test format
49-
run: |
50-
./scripts/fmt.sh
51-
git diff --exit-code
38+
39+
- name: Test format with clang format
40+
run: ./scripts/fmt.sh
5241

0 commit comments

Comments
 (0)