Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions .github/workflows/run-app.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
name: 'Basic Action'
name: 'Run App Asher Lahm'

on: [push]
on: [push, pull_request]

jobs:
check-bats-version:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: Basic Action
run: echo "Hello, World!"
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.301'
- uses: nuget/setup-nuget@v1
- name: Nuget Restore
run: nuget restore GithubActions.sln
- name: Install dependencies
run: dotnet restore GithubActions.sln
- name: Build
run: msbuild /p:Configuration=Release GithubActions.sln
- name: Run Unit Tests
run: mono ./packages/NUnit.ConsoleRunner.*/tools/nunit3-console.exe ./Tests/bin/Release/Tests.dll
6 changes: 2 additions & 4 deletions Console/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ static void Main(string[] args)
default:
throw new ArgumentException("You did not select a valid option!");
}

//change for a test push
var x = GetInput("Enter x: ");
var y = GetInput("Enter y: ");
var result = operation(x, y);
Expand Down Expand Up @@ -80,11 +80,9 @@ public static double Divide(string x, string y)
{
return double.Parse(x) / double.Parse(y);
}

// Implement this method following a similar pattern as above
public static double Power(string x, string y)
{
throw new NotImplementedException();
return Math.Pow(double.Parse(x), double.Parse(y));
}
}

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Run App](https://github.com/kgerot/GithubActions/actions/workflows/run-app.yaml/badge.svg)](https://github.com/kgerot/GithubActions/actions/workflows/run-app.yaml)
[![Run App Asher Lahm](https://github.com/Asher-Lahm/GithubActions/actions/workflows/run-app.yaml/badge.svg)](https://github.com/Asher-Lahm/GithubActions/actions/workflows/run-app.yaml)

# Do not submit a pull request to `kgerot/GithubActions` or `dteske/TraviCI`. Not following this instruction can ruin the lab for others, so pay attention.

Expand Down