ciabatta/.github/workflows/test.yml

42 lines
918 B
YAML
Raw Normal View History

2023-06-24 17:14:07 +00:00
name: Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
2023-06-24 17:27:08 +00:00
test:
2023-06-24 17:14:07 +00:00
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()