diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 64db9d16a..b0a29769f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: 'Run App , ' +name: 'Run App Liebentritt, Carson' on: [push, pull_request] @@ -6,4 +6,13 @@ jobs: build-and-test: runs-on: ubuntu-latest steps: - - run: echo "Hello, World!" + - uses: actions/checkout@v2 + - name: install dotnet + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '8.x' + - name: build + run: dotnet build + - name: run unit tests + run: dotnet test + diff --git a/Console/Program.cs b/Console/Program.cs index 56bb86061..e443b5c80 100644 --- a/Console/Program.cs +++ b/Console/Program.cs @@ -86,6 +86,6 @@ public static double Divide(string x, string y) // Implement this method following a similar pattern as above public static double Power(string x, string y) { - return 0.0; - } + return Math.Pow(double.Parse(x), double.Parse(y)); + } }