Skip to content

Commit

Permalink
Update README.dev.md
Browse files Browse the repository at this point in the history
  • Loading branch information
acocheo authored Sep 13, 2023
1 parent 29ead72 commit 8293caa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ Otherwise you can simply open an issue.
## 📖 Setup
CI files of base directory must be *hard linked* in the `.github/.github` folder, so they can be tested.
Since GitHub is not able to store the fact that these files are hardlink, you need to restore it executing [this script](.github/hooks/pre-commit) at every checkout.
From project root:
```bash
GIT_DIR=.git .github/hooks/pre-commit
```
Also a `pre-commit` hook has been made to do it automatically:
A `pre-commit` hook has been made to do it automatically:
```
cd .git/hooks
ln -s ../../.github/hooks/pre-commit
```
Alternatively you can execute the script manually every time you need. From project root:
```bash
GIT_DIR=.git .github/hooks/pre-commit
```
Now all changes will be linked and be tested with [*test* project](.github/test/) on every PR.
**Note:** Links are for the single files. If you add directories, move or add files, you need to re-execute (or even modify) the script.

Expand Down

0 comments on commit 8293caa

Please sign in to comment.