-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (33 loc) · 895 Bytes
/
main.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
name: Test Installation
on:
push:
branches:
- main
jobs:
test_installation:
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-18.04]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y python3-pip
sudo pip install bettyfixer
- name: Test Betty installed or not
run: |
command -v betty && echo "betty is installed" || echo "betty is not"
# - name: Create test files
# run: |
# echo -e "#include<stdio.h>\n\nint main(void) {\n return 0;\n}" > test.c
# - name: test the script
# run: |
# bettyfixer test.c
# cat test.c