From 6ab6f972a0ff67193480e730b8f417c6894b6675 Mon Sep 17 00:00:00 2001 From: "D. Ror" Date: Fri, 6 May 2022 12:38:24 -0400 Subject: [PATCH 1/5] imnasnainaec --- .github/workflows/imnasnainaec.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/imnasnainaec.yml diff --git a/.github/workflows/imnasnainaec.yml b/.github/workflows/imnasnainaec.yml new file mode 100644 index 0000000..24f1c18 --- /dev/null +++ b/.github/workflows/imnasnainaec.yml @@ -0,0 +1,30 @@ +# This is your hello Github Actions file + +name: Hello imnasnainaec + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the main branch + pull_request: + branches: [main] + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + + # Run a single command using the runners shell + - name: Github json + run: echo '${{ toJSON(github) }}' +# Below you can see how a second job named test could be added that runs on windows and has its own steps +# test: +# runs-on: windows-latest +# +# steps: From b19eb3ee7fe73c9316a7ad53960e8a06a9d9eee3 Mon Sep 17 00:00:00 2001 From: "D. Ror" Date: Fri, 6 May 2022 12:53:16 -0400 Subject: [PATCH 2/5] Comment out echo line that's causing action to fail --- .github/workflows/imnasnainaec.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/imnasnainaec.yml b/.github/workflows/imnasnainaec.yml index 24f1c18..4094a08 100644 --- a/.github/workflows/imnasnainaec.yml +++ b/.github/workflows/imnasnainaec.yml @@ -21,8 +21,8 @@ jobs: - uses: actions/checkout@v3 # Run a single command using the runners shell - - name: Github json - run: echo '${{ toJSON(github) }}' + #- name: Github json + # run: echo '${{ toJSON(github) }}' # Below you can see how a second job named test could be added that runs on windows and has its own steps # test: # runs-on: windows-latest From 53c5177660756c44c1acc2faed2b65b763ed0a55 Mon Sep 17 00:00:00 2001 From: "D. Ror" Date: Fri, 6 May 2022 13:00:22 -0400 Subject: [PATCH 3/5] Build TestReactProject --- .github/workflows/imnasnainaec.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/imnasnainaec.yml b/.github/workflows/imnasnainaec.yml index 4094a08..815e8e3 100644 --- a/.github/workflows/imnasnainaec.yml +++ b/.github/workflows/imnasnainaec.yml @@ -23,6 +23,14 @@ jobs: # Run a single command using the runners shell #- name: Github json # run: echo '${{ toJSON(github) }}' + + # Change to TestReactProject + - name: change directory + run: cd TestReactProject + + # Build the TestReactProject + - name: TestReactProject + run: dotnet build # Below you can see how a second job named test could be added that runs on windows and has its own steps # test: # runs-on: windows-latest From 97207c223a09cdf3ad6a4ee7332d991d596e72f0 Mon Sep 17 00:00:00 2001 From: "D. Ror" Date: Fri, 6 May 2022 13:04:49 -0400 Subject: [PATCH 4/5] Combine steps --- .github/workflows/imnasnainaec.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/imnasnainaec.yml b/.github/workflows/imnasnainaec.yml index 815e8e3..0656f48 100644 --- a/.github/workflows/imnasnainaec.yml +++ b/.github/workflows/imnasnainaec.yml @@ -24,13 +24,9 @@ jobs: #- name: Github json # run: echo '${{ toJSON(github) }}' - # Change to TestReactProject - - name: change directory - run: cd TestReactProject - # Build the TestReactProject - name: TestReactProject - run: dotnet build + run: cd TestReactProject && dotnet build # Below you can see how a second job named test could be added that runs on windows and has its own steps # test: # runs-on: windows-latest From 25087fc27d9d66cd09d80b9fd32c5b276f25c734 Mon Sep 17 00:00:00 2001 From: "D. Ror" Date: Fri, 6 May 2022 13:10:46 -0400 Subject: [PATCH 5/5] Use working-directory instead of cd --- .github/workflows/imnasnainaec.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/imnasnainaec.yml b/.github/workflows/imnasnainaec.yml index 0656f48..395e223 100644 --- a/.github/workflows/imnasnainaec.yml +++ b/.github/workflows/imnasnainaec.yml @@ -26,7 +26,8 @@ jobs: # Build the TestReactProject - name: TestReactProject - run: cd TestReactProject && dotnet build + working-directory: TestReactProject + run: dotnet build # Below you can see how a second job named test could be added that runs on windows and has its own steps # test: # runs-on: windows-latest