-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (61 loc) · 1.42 KB
/
ci.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Continuous Integration
on:
push:
jobs:
norm:
name: norminette
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip setuptools
python3 -m pip install norminette
- name: Run Norminette
run: make norm
build:
name: build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build push_swap
run: make
- name: Clean push_swap
run: make fclean
- name: Build checker
run: make bonus
unit_test:
name: unit_test
runs-on: macos-12
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build push_swap
run: make
- name: Unit test
run: make test
e2e_test:
runs-on: macos-12
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build push_swap
run: make
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3.0
- name: Install dependencies
run: |
gem install bundler
bundle install
- name: Run tests
run: rake test