-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (30 loc) · 795 Bytes
/
Copy pathmain.yml
File metadata and controls
38 lines (30 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Test Script
on:
push: # Trigger on every push
branches:
- main # Specify the branch to trigger the workflow on (e.g., main)
workflow_dispatch: # Allow manual trigger if needed
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up dependencies
run: |
sudo apt-get update
sudo apt-get install -y nasm
- name: Compile ToyCComp
run: |
make compile
- name: Run testing script
run: |
csh ./tests/runner.csh > test_summary.log
- name: Print test summary
run: |
echo "Test Summary:"
cat test_summary.log
- name: Upload test summary
run: |
cat test_summary.log
id: test-summary