Skip to content

Commit

Permalink
github: adds github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Dav1dde committed Jul 15, 2021
1 parent f427c40 commit 4532065
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/glad2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
on: [push, pull_request]

name: glad2

jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-test.txt
- name: Install dependencies
run: sudo apt-get install gcc g++ gcc-mingw-w64 g++-mingw-w64 rustc libglfw3-dev wine winetricks xvfb libxxf86vm-dev libxi-dev libxcursor-dev libxinerama-dev
- name: Setup environment
run: |
mkdir .wine
export WINEPREFIX="$(pwd)/.wine"
export WINEDLLOVERRIDES="mscoree,mshtml="
winetricks nocrashdialog
- name: Run Tests
run: PRINT_MESSAGE=1 xvfb-run --auto-servernum ./utility/test.sh
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
files: test-report.xml
comment_mode: off
3 changes: 3 additions & 0 deletions utility/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,6 @@ report_end
echo
echo "Total tests: $_tests_total, Tests ran: $_tests_ran, Tests failed: $_tests_failed"

if [ $_tests_failed -gt 0 ]; then
exit 1
fi

0 comments on commit 4532065

Please sign in to comment.