From 5eb7ba5aa88cad0bf35cd89c193b869d40ff9356 Mon Sep 17 00:00:00 2001 From: Bruno Baia Date: Sun, 12 Dec 2021 19:26:48 +0100 Subject: [PATCH] Migrate from Travis CI to GitHub Actions --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ .travis.yml | 10 ---------- Protractor.sln | 2 +- README.md | 2 +- 4 files changed, 38 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..935c616 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index aaf8bce..0000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -language: csharp -mono: none -addons: - chrome: stable -dotnet: 5.0.202 -install: - - dotnet restore Protractor.sln -script: - - dotnet build examples/Protractor.Samples/Protractor.Samples.csproj - - dotnet test examples/Protractor.Samples/Protractor.Samples.csproj diff --git a/Protractor.sln b/Protractor.sln index 9db13a3..d3d107e 100644 --- a/Protractor.sln +++ b/Protractor.sln @@ -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 diff --git a/README.md b/README.md index e8c721a..3cd98f8 100644 --- a/README.md +++ b/README.md @@ -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.