Skip to content

Commit

Permalink
Updated test workflows to include test for emulator and use consisten…
Browse files Browse the repository at this point in the history
…t naming.
  • Loading branch information
linguini1 committed Jan 17, 2024
1 parent 01c9be7 commit 5bac00f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/asm_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@ name: Test Assembler

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

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: make check
working-directory: ./assembler
run: make check
- uses: actions/checkout@v3
- name: Testing
working-directory: ./assembler
run: make test
16 changes: 16 additions & 0 deletions .github/workflows/emulator_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Test Emulator

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

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Testing
working-directory: ./emulator
run: make test
2 changes: 1 addition & 1 deletion assembler/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ tester:
%.o: %.c
$(CC) $(CFLAGS) $(WARNINGS) -o $@ -c $<

check: assembler tester
test: assembler tester
@echo "RUNNING TESTS"
$(abspath $(TEST_OUT)) $(abspath $(TEST_PROGRAMS)) $(abspath $(OUT))

Expand Down

0 comments on commit 5bac00f

Please sign in to comment.