-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 986 Bytes
/
UserTests.yml
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
39
40
name: UserTests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
container:
image: vityamand/xv6:latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Show the MR info
run: |
echo "Target branch: '$GITHUB_BASE_REF'"
echo "Source branch: '$GITHUB_HEAD_REF'"
- name: Build
run: make && make fs.img
- name: Test Lab 1
if: ${{ github.head_ref == 'lab-1' }}
run: sh ./ci/test/run.sh dumptests dump2tests usertests
- name: Test Lab 2
if: ${{ github.head_ref == 'lab-2' }}
run: sh ./ci/test/run.sh alloctest usertests
- name: Test Lab 3
if: ${{ github.head_ref == 'lab-3' }}
run: sh ./ci/test/run.sh cowtest lazytests usertests
- name: Test Basic
if: ${{ ! startsWith(github.head_ref, 'lab-') }}
run: sh ./ci/test/run.sh usertests