mirror of
https://github.com/tbamud/tbamud.git
synced 2026-04-30 04:41:51 +02:00
Introduced new system for unit tests based on the Unity framework. Added tests for some of the simple functions in four different files.
36 lines
652 B
YAML
36 lines
652 B
YAML
name: C/C++ CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ "master" ]
|
|
pull_request_target:
|
|
branches: [ "master" ]
|
|
|
|
permissions:
|
|
contents: read
|
|
checks: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: configure
|
|
run: ./configure
|
|
- name: build
|
|
working-directory: src
|
|
run: touch .accepted && make
|
|
- name: test
|
|
working-directory: tests
|
|
run: make test
|
|
- name: publish test results
|
|
uses: dorny/test-reporter@v1
|
|
if: always()
|
|
with:
|
|
name: Unity Tests
|
|
path: tests/test-results/*.xml
|
|
reporter: java-junit
|