From 4f3f2e589645b28be24fb7cac485ccc35677d32a Mon Sep 17 00:00:00 2001 From: alterNERDtive Date: Tue, 31 May 2022 20:49:38 +0200 Subject: [PATCH] =?UTF-8?q?workflows:=20let=E2=80=99s=20see=20if=20we=20ca?= =?UTF-8?q?n=20get=20test=20on=20push=20working?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/create-release.yaml | 2 +- .github/workflows/push-test.yaml | 29 +++++++++++++++++++++++++++ EDNA.sln | 1 + 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/push-test.yaml diff --git a/.github/workflows/create-release.yaml b/.github/workflows/create-release.yaml index a6902fb..8eb5c8c 100644 --- a/.github/workflows/create-release.yaml +++ b/.github/workflows/create-release.yaml @@ -17,7 +17,7 @@ jobs: uses: actions/checkout@v2 - name: Setup .Net - uses: actions/setup-dotnet@v1.1 + uses: actions/setup-dotnet@v2 with: dotnet-version: '6.0.x' diff --git a/.github/workflows/push-test.yaml b/.github/workflows/push-test.yaml new file mode 100644 index 0000000..b654492 --- /dev/null +++ b/.github/workflows/push-test.yaml @@ -0,0 +1,29 @@ +name: Run tests on push push + +on: + push + +jobs: + build: + name: Test EDNA + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + - name: Checkout source code + uses: actions/checkout@v2 + + - name: Setup .Net + uses: actions/setup-dotnet@v2 + with: + dotnet-version: '6.0.x' + + - name: Restore dependencies + run: dotnet restore + + - name: Build + run: dotnet build -c release + + - name: Run tests + run: dotnet test diff --git a/EDNA.sln b/EDNA.sln index 8a97be4..134fa9e 100644 --- a/EDNA.sln +++ b/EDNA.sln @@ -19,6 +19,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution CHANGELOG.md = CHANGELOG.md .github\workflows\create-release.yaml = .github\workflows\create-release.yaml Directory.build.props = Directory.build.props + .github\workflows\push-test.yaml = .github\workflows\push-test.yaml README.md = README.md stylecop.json = stylecop.json EndProjectSection