diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..0c4739a --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,41 @@ +name: Test + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + build: + strategy: + matrix: + BUILD_CONFIGURATION: [CIA_DEBUG] + OS: [CIA_WINDOWS] + runs-on: windows-latest + + steps: + - uses: actions/checkout@v3 + - name: Setup NASM + uses: ilammy/setup-nasm@v1 + - name: Setup MSVC Developer Command Prompt + uses: TheMrMilchmann/setup-msvc-dev@v2.0.0 + with: + arch: x64 + - name: Build ciabatta.lib + working-directory: ${{env.GITHUB_WORKSPACE}} + shell: pwsh + run: ./build.ps1 ${{matrix.BUILD_CONFIGURATION}} ${{matrix.OS}} + - name: Build and run test suite + working-directory: ${{env.GITHUB_WORKSPACE}} + shell: pwsh + run: ./test.ps1 crt + - name: Test Summary + uses: test-summary/action@v2 + with: + paths: "test/junit.xml" + if: always() +