From 3653c4a1f0f56463f300a0d554b5f2a15265431b Mon Sep 17 00:00:00 2001 From: Simon G Date: Tue, 24 Sep 2019 10:55:23 +0200 Subject: [PATCH 1/8] - add github actions ci.yml file --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..db5296a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: CI + +on: [push] + +jobs: + build: + Name: Build + runs-on: windows-latest + + steps: + - name: Checkout + - uses: actions/checkout@v1 + - name: Build + run: dotnet build + + test: + Name: Test + needs: build + runs-on: windows-latest + + steps: + - name: Run tests + run: dotnet test --no-build Test.LightweightIocContainer + From 6cf50a78ab438deaddbefdfaceb46b7038fd87a8 Mon Sep 17 00:00:00 2001 From: Simon G Date: Tue, 24 Sep 2019 10:57:46 +0200 Subject: [PATCH 2/8] - fix wrong usage of name --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index db5296a..7ca2003 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,17 +4,17 @@ on: [push] jobs: build: - Name: Build + - name: Build runs-on: windows-latest steps: - name: Checkout - - uses: actions/checkout@v1 + uses: actions/checkout@v1 - name: Build run: dotnet build test: - Name: Test + - name: Test needs: build runs-on: windows-latest From a175a453b4494d81d9212fa3b01dd7ad0783ebdb Mon Sep 17 00:00:00 2001 From: Simon G Date: Tue, 24 Sep 2019 10:59:52 +0200 Subject: [PATCH 3/8] - fix -name usage of job name --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7ca2003..5918b4f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,7 @@ on: [push] jobs: build: - - name: Build + name: Build runs-on: windows-latest steps: @@ -14,7 +14,7 @@ jobs: run: dotnet build test: - - name: Test + name: Test needs: build runs-on: windows-latest From e6b037c75d491e7179de7f093c3a8af1cdcd5259 Mon Sep 17 00:00:00 2001 From: Simon G Date: Tue, 24 Sep 2019 11:09:59 +0200 Subject: [PATCH 4/8] Rename ci.yml to ci-test.yml --- .github/workflows/{ci.yml => ci-test.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{ci.yml => ci-test.yml} (100%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci-test.yml similarity index 100% rename from .github/workflows/ci.yml rename to .github/workflows/ci-test.yml From 45154912b6bb5dc1837dcd3e1316f93689727ae5 Mon Sep 17 00:00:00 2001 From: Simon G Date: Tue, 24 Sep 2019 11:12:12 +0200 Subject: [PATCH 5/8] - remove --no-build flag and revert rename --- .github/workflows/{ci-test.yml => ci.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{ci-test.yml => ci.yml} (83%) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci.yml similarity index 83% rename from .github/workflows/ci-test.yml rename to .github/workflows/ci.yml index 5918b4f..1cd66d6 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci.yml @@ -20,5 +20,5 @@ jobs: steps: - name: Run tests - run: dotnet test --no-build Test.LightweightIocContainer + run: dotnet test Test.LightweightIocContainer From 75557d37831559ab919054dff7fba18143bd2f6f Mon Sep 17 00:00:00 2001 From: Simon G Date: Tue, 24 Sep 2019 11:21:50 +0200 Subject: [PATCH 6/8] - try --no-build flag without project --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1cd66d6..e5f7b28 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,5 +20,5 @@ jobs: steps: - name: Run tests - run: dotnet test Test.LightweightIocContainer + run: dotnet test --no-build From 7d2e975ab0cb756682c99e813385c1e8ecac002d Mon Sep 17 00:00:00 2001 From: Simon G Date: Tue, 24 Sep 2019 11:27:33 +0200 Subject: [PATCH 7/8] - add path to test .csproj file --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e5f7b28..bbb9279 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,5 +20,5 @@ jobs: steps: - name: Run tests - run: dotnet test --no-build + run: dotnet test --no-build Test.LightweightIocContainer\Test.LightweightIocContainer.csproj From b80d6b435edf3877170b8c2df19b3aad583f957f Mon Sep 17 00:00:00 2001 From: Simon G Date: Tue, 24 Sep 2019 11:31:31 +0200 Subject: [PATCH 8/8] - try to checkout project at start of test too --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bbb9279..926aeb7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,6 +19,8 @@ jobs: runs-on: windows-latest steps: + - name: Checkout + uses: actions/checkout@v1 - name: Run tests - run: dotnet test --no-build Test.LightweightIocContainer\Test.LightweightIocContainer.csproj + run: dotnet test