Skip to content

Commit

Permalink
Add test action
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipRoman committed Aug 5, 2024
1 parent 1dc07e4 commit 47dde94
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Test

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Install GDB
run: sudo apt install -yy gdb
- name: Test
run: cd tests && ./test.sh
1 change: 1 addition & 0 deletions tests/test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# Note: tests probably won't work outside of glibc/x86_64 based systems
set -e
cc -g helloworld.c
gdb --batch --nx \
Expand Down

0 comments on commit 47dde94

Please sign in to comment.