From f398bdf3ed1c72b8fe1cd86734b2b20da0f5c354 Mon Sep 17 00:00:00 2001 From: Khant Date: Fri, 2 Aug 2024 01:44:49 +0700 Subject: [PATCH] add ci pipeline --- .github/workflows/ci.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..3629a53 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,30 @@ +name: CI Workflow + +on: + push: + branches: + - main + - dev + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + dotnet-version: ["8.0.x", "6.0.x"] + + steps: + + - uses: actions/checkout@v4 + name: Check out the code to runner + with: + fetch-depth: 0 + + - name: Setup dotnet ${{ matrix.dotnet-version }} + uses: actions/setup-dotnet@v3 + with: + dotnet-version: ${{ matrix.dotnet-version }} + cache: true + + - name: Display dotnet version + run: dotnet --version