Skip to content

Commit

Permalink
Add CTest in GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
sinofp authored and sequencer committed Jun 25, 2021
1 parent 636aae7 commit 7f00cf0
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 20 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/ci.yml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Test

on:
push:
pull_request:
branches: [master]

jobs:
build-test:
runs-on: ubuntu-20.04
strategy:
matrix:
cc: [clang, gcc]
steps:
- uses: actions/checkout@v2
- name: Build
run: cmake -B build && make -C build
env:
CC: /usr/bin/${{ matrix.cc }}
CFLAGS: "-Wpedantic -Wall -Werror"
run-test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Build
run: cmake -B build && make -C build
- name: Test
run: cd build && ctest
1 change: 1 addition & 0 deletions format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
clang-format -i {utility,espresso}/*.{h,c}
cmake-format -i CMakeLists.txt
shfmt -i 4 -w format.sh
prettier --write .github/workflows/*

0 comments on commit 7f00cf0

Please sign in to comment.