Skip to content

Commit c6c8d24

Browse files
jasaltChemaclassJesusValeraDev
committed
Support running against Phel
Co-authored-by: Chemaclass <chemaclass@outlook.es> Co-authored-by: Jesus Valera Reales <github@jesusvalera.dev>
1 parent eb8daa1 commit c6c8d24

47 files changed

Lines changed: 1575 additions & 103 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,3 +162,35 @@ jobs:
162162
BASILISP_TEST_PATH="$(pwd)/test" \
163163
BASILISP_TEST_FILE_PATTERN='.*\.(lpy|cljc)' \
164164
basilisp test -p test -- -n auto
165+
166+
test-phel:
167+
runs-on: ubuntu-latest
168+
strategy:
169+
fail-fast: false # TODO should be true (default) for CI?
170+
matrix:
171+
php: ['8.4', '8.5']
172+
steps:
173+
- uses: actions/checkout@v4
174+
175+
- uses: shivammathur/setup-php@v2
176+
with:
177+
php-version: ${{ matrix.php }}
178+
coverage: none
179+
tools: composer
180+
181+
- name: Get composer cache directory
182+
id: composer-cache
183+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
184+
185+
- name: Cache dependencies
186+
uses: actions/cache@v4
187+
with:
188+
path: ${{ steps.composer-cache.outputs.dir }}
189+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
190+
restore-keys: ${{ runner.os }}-composer-
191+
192+
- name: Install dependencies
193+
run: composer install --no-interaction --no-ansi --no-progress
194+
195+
- name: Run tests
196+
run: php -d memory_limit=256M ./vendor/bin/phel test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ __pycache__/
2828
poetry.lock
2929
*.egg-info/
3030
.DS_Store
31+
/vendor/

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ See these documents for how to set up individual dialect-specific environments a
2222
3. [Babashka](doc/babashka.md)
2323
4. [Clojure CLR](doc/clojureclr.md)
2424
5. [Basilisp](doc/basilisp.md)
25+
6. [Phel](doc/phel.md)

composer.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"require": {
3+
"phel-lang/phel-lang": "dev-main"
4+
},
5+
"minimum-stability": "dev"
6+
}

0 commit comments

Comments
 (0)