Skip to content

Commit

Permalink
Try action for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
arzelcm committed Jun 29, 2024
1 parent 5829d80 commit a689028
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 23 deletions.
5 changes: 5 additions & 0 deletions .github/norme-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cd .github;
curl -sLO https://github.com/42School/norminette/archive/refs/heads/master.zip;
rm -rf norminette-master;
unzip master.zip;
rm master.zip;
46 changes: 24 additions & 22 deletions .github/workflows/c.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
name: C CI

on:
push:
branches: [ "main", "ultimate-chaaaaaaanges" ]
pull_request:
branches: [ "main" ]
on: [push, pull_request]

jobs:
build:
norminette_job:
runs-on: ubuntu-latest
name: norminette
steps:
- uses: actions/checkout@v2
- uses: alexandregv/norminette-action@v3
with:
flags: '.'
norme:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install norminette
run: bash .github/norme-install.sh
- name: run test
run: norminette.sh
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
#- name: configure
# run: ./configure
- run: make
- run: make test
#- name: make check
# run: make check
#- name: make distcheck
# run: make distcheck
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: blank-test
run: make test
- name: mpanic
run: make panic
- name: build
run: make
- name: blank test
run: make test
- name: mpanic test
run: make panic
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,7 @@ $USER*
minishell_tester/
42_minishell_tester-master/
mpanic/
.gitmodules
.gitmodules

.github/norminette-master
master.zip

0 comments on commit a689028

Please sign in to comment.