From fc3a2f251a0e068548e5eb665dca605b0eaf76ff Mon Sep 17 00:00:00 2001 From: Eberhard Beilharz Date: Fri, 6 May 2022 11:51:10 -0500 Subject: [PATCH 1/2] Add my workflow --- .github/workflows/ermshiperete.yml | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/ermshiperete.yml diff --git a/.github/workflows/ermshiperete.yml b/.github/workflows/ermshiperete.yml new file mode 100644 index 0000000..e451e71 --- /dev/null +++ b/.github/workflows/ermshiperete.yml @@ -0,0 +1,33 @@ +# This is your hello Github Actions file + +name: My GHA + +# 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) }}' + + - name: Build + run: dotnet build TestReactProject +# 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 0f186caeccddecd8f96a22a5152df818980ad6f7 Mon Sep 17 00:00:00 2001 From: Eberhard Beilharz Date: Fri, 6 May 2022 11:56:48 -0500 Subject: [PATCH 2/2] Run tests on Windows --- .github/workflows/ermshiperete.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ermshiperete.yml b/.github/workflows/ermshiperete.yml index e451e71..2e08069 100644 --- a/.github/workflows/ermshiperete.yml +++ b/.github/workflows/ermshiperete.yml @@ -1,6 +1,6 @@ # This is your hello Github Actions file -name: My GHA +name: WhyAnotherOne? # Controls when the workflow will run on: @@ -20,14 +20,14 @@ jobs: # 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) }}' - - name: Build run: dotnet build TestReactProject -# 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: + + test: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v3 + + - name: Test + run: dotnet test TestReactProject