Skip to content

Commit

Permalink
Migrate from Travis CI to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaia committed Dec 12, 2021
1 parent 4578b2b commit 5eb7ba5
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 12 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [master]
pull_request:
branches: [master]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
ci:
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x

- name: Install dependencies
run: dotnet restore Protractor.sln

- name: Build
run: dotnet build examples/Protractor.Samples/Protractor.Samples.csproj

- name: Test
run: dotnet test examples/Protractor.Samples/Protractor.Samples.csproj
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Protractor.sln
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
ProjectSection(SolutionItems) = preProject
.gitattributes = .gitattributes
.gitignore = .gitignore
.travis.yml = .travis.yml
.github\workflows\ci.yml = .github\workflows\ci.yml
HISTORY.md = HISTORY.md
LICENSE = LICENSE
README.md = README.md
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Protractor for .NET [![Build Status](https://travis-ci.org/bbaia/protractor-net.svg?branch=master)](https://travis-ci.org/bbaia/protractor-net)
Protractor for .NET [![CI](https://github.com/bbaia/protractor-net/actions/workflows/ci.yml/badge.svg)](https://github.com/bbaia/protractor-net/actions/workflows/ci.yml)
===================

The .NET port of [Protractor](https://github.com/angular/protractor), an end to end test framework for Angular applications.
Expand Down

0 comments on commit 5eb7ba5

Please sign in to comment.