Skip to content

Commit 41bbea3

Browse files
authored
Move CI from Travis to GitHub Actions (TheAlgorithms#388)
1 parent 5d54eb7 commit 41bbea3

File tree

3 files changed

+21
-12
lines changed

3 files changed

+21
-12
lines changed

.github/workflows/ci.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- name: Setup .NET SDK
11+
uses: actions/setup-dotnet@v3
12+
with:
13+
dotnet-version: 6.x
14+
- name: Restore
15+
run: dotnet restore
16+
- name: Build
17+
run: dotnet build --no-restore
18+
- name: Test
19+
run: dotnet test --no-restore --collect "XPlat Code Coverage"
20+
- name: Upload code coverage to Codecov
21+
run: bash <(curl -s https://codecov.io/bash)

.travis.yml

-11
This file was deleted.

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# The Algorithms - C#
44

55
[![Discord chat](https://img.shields.io/discord/808045925556682782.svg?logo=discord&colorB=7289DA)](https://discord.gg/c7MnfGFGa6)
6-
[![Build Status](https://app.travis-ci.com/TheAlgorithms/C-Sharp.svg?branch=master)](https://app.travis-ci.com/TheAlgorithms/C-Sharp)
76
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/58895a2795bd48a8b3b7eb6ebe22d576)](https://www.codacy.com/gh/TheAlgorithms/C-Sharp/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=TheAlgorithms/C-Sharp&amp;utm_campaign=Badge_Grade)
87
[![codecov](https://codecov.io/gh/TheAlgorithms/C-Sharp/branch/master/graph/badge.svg)](https://codecov.io/gh/TheAlgorithms/C-Sharp)
98
[![Donate](https://liberapay.com/assets/widgets/donate.svg)](https://liberapay.com/TheAlgorithms/donate)

0 commit comments

Comments
 (0)