Skip to content

Commit 2cfd603

Browse files
committed
switch to github actions
This change switches the CI pipeline to GitHub Actions. It just seems like the logical choice as travis seems to take an incredibly long time. Fixes #232 Signed-off-by: Christopher Friedt <[email protected]>
1 parent ea808c3 commit 2cfd603

File tree

3 files changed

+37
-30
lines changed

3 files changed

+37
-30
lines changed

.github/workflows/ci.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
# This only works with the "matrix" strategy
13+
#fail-fast: false
14+
steps:
15+
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
19+
- name: Setup Environment
20+
run: |
21+
sudo apt-get update
22+
sudo apt install -y cmake clang clang-tidy gcovr
23+
sudo sh .scripts/build-and-install-libgtest-libraries.sh
24+
25+
- name: Build
26+
run: |
27+
make -j`nproc --all`
28+
29+
- name: Test
30+
run: |
31+
make check
32+
33+
- name: Coverage
34+
run: |
35+
make gcov
36+
bash <(curl -s https://codecov.io/bash)

.travis.yml

-29
This file was deleted.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://travis-ci.com/cfriedt/leetcode.svg?branch=master)](https://travis-ci.com/cfriedt/leetcode)
1+
![CI](https://github.com/cfriedt/leetcode/workflows/CI/badge.svg)
22
[![Codecov Status](https://codecov.io/gh/cfriedt/leetcode/branch/master/graph/badge.svg)](https://codecov.io/gh/cfriedt/leetcode)
33
[![Code Quality](https://api.codacy.com/project/badge/Grade/2591b5d32ac84f1897b4a7e8d45d1544)](https://www.codacy.com/app/cfriedt/leetcode?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=cfriedt/leetcode&amp;utm_campaign=Badge_Grade)
44
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

0 commit comments

Comments
 (0)