Create test.yml

This commit is contained in:
flysand7 2023-06-25 04:14:07 +11:00 committed by GitHub
parent 2438fad20e
commit 7d769085a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 41 additions and 0 deletions

41
.github/workflows/test.yml vendored Normal file
View File

@ -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()