From 9a76bce78e3307b235cbc562dc1a0e3b014bf4f4 Mon Sep 17 00:00:00 2001 From: Noah Too Date: Thu, 18 May 2023 09:21:24 +0300 Subject: [PATCH 1/2] add Betty CI --- .editorconfig | 4 ++++ .github/workflows/betty.yml | 21 +++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 .github/workflows/betty.yml diff --git a/.editorconfig b/.editorconfig index febbc2c..13be9ab 100644 --- a/.editorconfig +++ b/.editorconfig @@ -9,3 +9,7 @@ trim_trailing_whitespace = true [*.c] indent_size = 4 + +[*.yml] +indent_size = 2 +indent_style = space diff --git a/.github/workflows/betty.yml b/.github/workflows/betty.yml new file mode 100644 index 0000000..e29a1da --- /dev/null +++ b/.github/workflows/betty.yml @@ -0,0 +1,21 @@ +name: Betty CI + +on: + push: + branches: [ "main" ] + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Install Betty + run: | + git clone https://github.com/holbertonschool/Betty.git + cd ./Betty + sudo install.sh + + - name: Run betty + run: betty *.c *.h From 0863fda95988357b6a605411a54b72f332dff2fd Mon Sep 17 00:00:00 2001 From: Noah Too Date: Thu, 18 May 2023 09:24:07 +0300 Subject: [PATCH 2/2] fix: command not found --- .github/workflows/betty.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/betty.yml b/.github/workflows/betty.yml index e29a1da..f8d8f4c 100644 --- a/.github/workflows/betty.yml +++ b/.github/workflows/betty.yml @@ -15,7 +15,7 @@ jobs: run: | git clone https://github.com/holbertonschool/Betty.git cd ./Betty - sudo install.sh + sudo ./install.sh - name: Run betty run: betty *.c *.h