Skip to content

Commit

Permalink
Add test GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gilzoide committed Sep 25, 2023
1 parent dca1517 commit 02ba545
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test
on: [push, pull_request]
defaults:
run:
shell: bash

env:
SCONS_CACHE: ${{ github.workspace }}/.scons-cache

jobs:
test_linux:
name: Run tests on Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install scons
- name: Cache SCons files
uses: actions/cache@v3
with:
path: |
$SCONS_CACHE
key: linux-x86_64-template_debug-test
- name: Build artifact
run: |
scons
- name: Run tests
run: |
scons test

0 comments on commit 02ba545

Please sign in to comment.