Skip to content
Closed

Power #150

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
17 changes: 13 additions & 4 deletions .github/workflows/run-app.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
name: 'Basic Action'
name: 'Run App Luis (Felipe) Rojas'

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

jobs:
check-bats-version:
runs-on: ubuntu-latest
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
2 changes: 1 addition & 1 deletion Console/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ 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)
{
throw new NotImplementedException();
return double.Parse(x).Power(double.Parse(y));
}
}

Expand Down
4 changes: 2 additions & 2 deletions 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 Luis (Felipe) Rojas](https://github.com/Felipe-Rojas442/GithubActions/actions/workflows/run-app.yaml/badge.svg)](https://github.com/Felipe-Rojas442/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 All @@ -22,7 +22,7 @@ Currently, there should be one job that has run successfully.

![Actions Tab](./img/actions-tab.PNG)

If you open that job, you'll see we've programmed the action to just echo `Hello, World!`. If yo ucannot find a job, that's okay. Sometimes Github will not run an action immediately upon forking.
If you open that job, you'll see we've programmed the action to just echo `Hello, World!`. If you cannot find a job, that's okay. Sometimes Github will not run an action immediately upon forking.

We want our action to build our project. To do this, navigate to the file `.github/workflows/run-app.yaml`.
This is where we have define a workflow that runs a process called `Basic Action` that echos `Hello, World!`. It runs on the latest Ubuntu OS and runs everytime you push.
Expand Down