Skip to content

Commit b051aa8

Browse files
authored
ci: merge workflows into a single CI workflow (#44)
* ci: change `build.yml` workflow `to `ci.yaml` workflow * ci: move jobs in Test workflow to CI workflow * docs(readme): update the build status badge
1 parent 150404f commit b051aa8

File tree

3 files changed

+17
-20
lines changed

3 files changed

+17
-20
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/test.yml renamed to .github/workflows/ci.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,24 @@
1-
name: test
1+
name: CI
22
on:
33
workflow_dispatch:
44
pull_request:
55
push:
66
branches: [main]
77
jobs:
8+
build:
9+
name: Build
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/[email protected]
14+
15+
- name: Configure and build this project
16+
uses: threeal/[email protected]
17+
with:
18+
run-build: true
19+
820
unit-tests:
21+
name: Unit Tests
922
runs-on: ubuntu-latest
1023
steps:
1124
- name: Checkout repository
@@ -24,6 +37,7 @@ jobs:
2437
fail-under-line: 80
2538

2639
check-warning:
40+
name: Check Warning
2741
runs-on: ubuntu-latest
2842
steps:
2943
- name: Checkout repository
@@ -37,6 +51,7 @@ jobs:
3751
run-build: true
3852

3953
check-formatting:
54+
name: Check Formatting
4055
runs-on: ubuntu-latest
4156
steps:
4257
- name: Checkout repository

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# C++ Starter
22

3-
[![build status](https://img.shields.io/github/actions/workflow/status/threeal/cpp-starter/build.yml?branch=main)](https://github.com/threeal/cpp-starter/actions/workflows/build.yml)
4-
[![test status](https://img.shields.io/github/actions/workflow/status/threeal/cpp-starter/test.yml?label=test&branch=main)](https://github.com/threeal/cpp-starter/actions/workflows/test.yml)
3+
[![build status](https://img.shields.io/github/actions/workflow/status/threeal/cpp-starter/ci.yaml?branch=main&style=flat-square)](https://github.com/threeal/cpp-starter/actions/workflows/ci.yaml)
54

65
The C++ Starter is a [GitHub repository template](https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template) that provides a minimalistic boilerplate to kickstart your [C++](https://isocpp.org) project. This template offers a streamlined foundation, complete with predefined file structures, essential tools, and recommended settings, ensuring a swift and efficient start to your C++ development journey.

0 commit comments

Comments
 (0)