mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-08 04:30:26 -03:00
Compare commits
15 Commits
411c969cc4
...
6a38f2f5fb
Author | SHA1 | Date | |
---|---|---|---|
6a38f2f5fb | |||
c4a2d1a752 | |||
358be51e27 | |||
2cff0fea48 | |||
40202eb2d6 | |||
3ed4a7eab8 | |||
6f797f999a | |||
b762307660 | |||
eb0cc089a9 | |||
88f2aace20 | |||
fe943fa399 | |||
08f8138e05 | |||
3c0b3c38e2 | |||
a1318501a5 | |||
daf24189bf |
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -4,11 +4,12 @@ on:
|
|||||||
# different versions of chroma. Need to get the same one in my
|
# different versions of chroma. Need to get the same one in my
|
||||||
# local env and in CI
|
# local env and in CI
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Download source
|
- name: Download source
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -16,7 +17,10 @@ jobs:
|
|||||||
uses: crystal-lang/install-crystal@v1
|
uses: crystal-lang/install-crystal@v1
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update && sudo apt-get install golang-chroma -y
|
wget https://github.com/alecthomas/chroma/releases/download/v2.14.0/chroma-2.14.0-linux-amd64.tar.gz
|
||||||
|
tar xzvf chroma-2.14.0*gz
|
||||||
|
mkdir ~/.local/bin -p
|
||||||
|
sudo mv chroma ~/.local/bin
|
||||||
shards install
|
shards install
|
||||||
crystal tool format --check
|
crystal tool format --check
|
||||||
crystal spec -v
|
crystal spec -v
|
||||||
|
6
.github/workflows/coverage.yml
vendored
6
.github/workflows/coverage.yml
vendored
@ -16,9 +16,13 @@ jobs:
|
|||||||
- name: Run tests using kcov
|
- name: Run tests using kcov
|
||||||
run: |
|
run: |
|
||||||
sudo apt update && sudo apt install kcov
|
sudo apt update && sudo apt install kcov
|
||||||
|
wget https://github.com/alecthomas/chroma/releases/download/v2.14.0/chroma-2.14.0-linux-amd64.tar.gz
|
||||||
|
tar xzvf chroma-2.14.0*gz
|
||||||
|
mkdir ~/.local/bin -p
|
||||||
|
sudo mv chroma ~/.local/bin
|
||||||
shards install
|
shards install
|
||||||
crystal build src/run_tests.cr
|
crystal build src/run_tests.cr
|
||||||
kcov --clean --include-path=./src coverage ./run_tests
|
kcov --clean --include-path=./src $PWD/coverage ./run_tests
|
||||||
curl -Os https://uploader.codecov.io/latest/linux/codecov
|
curl -Os https://uploader.codecov.io/latest/linux/codecov
|
||||||
chmod +x codecov
|
chmod +x codecov
|
||||||
./codecov -t ${CODECOV_TOKEN} -s coverage
|
./codecov -t ${CODECOV_TOKEN} -s coverage
|
||||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -10,3 +10,5 @@ shard.lock
|
|||||||
.crystal/
|
.crystal/
|
||||||
venv/
|
venv/
|
||||||
.croupier
|
.croupier
|
||||||
|
coverage/
|
||||||
|
run_tests
|
||||||
|
@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
### 🐛 Bug Fixes
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
- Ameba
|
- Ameba
|
||||||
|
- Variable bame in Hacefile
|
||||||
|
|
||||||
### 📚 Documentation
|
### 📚 Documentation
|
||||||
|
|
||||||
@ -25,6 +26,11 @@ All notable changes to this project will be documented in this file.
|
|||||||
|
|
||||||
- Switch from Makefile to Hacefile
|
- Switch from Makefile to Hacefile
|
||||||
- Added do_release script
|
- Added do_release script
|
||||||
|
- Fix markdown check
|
||||||
|
|
||||||
|
### Bump
|
||||||
|
|
||||||
|
- Release v0.6.4
|
||||||
|
|
||||||
## [0.6.1] - 2024-08-25
|
## [0.6.1] - 2024-08-25
|
||||||
|
|
||||||
|
@ -37,13 +37,13 @@ tasks:
|
|||||||
dependencies:
|
dependencies:
|
||||||
- bin/tartrazine
|
- bin/tartrazine
|
||||||
commands: |
|
commands: |
|
||||||
rm ${HOME}/.local/bin/{{name}}
|
rm ${HOME}/.local/bin/{{NAME}}
|
||||||
cp bin/hace ${HOME}/.local/bin/{{name}}
|
cp bin/hace ${HOME}/.local/bin/{{NAME}}
|
||||||
|
|
||||||
static:
|
static:
|
||||||
outputs:
|
outputs:
|
||||||
- bin/{{name}}-static-linux-amd64
|
- bin/{{NAME}}-static-linux-amd64
|
||||||
- bin/{{name}}-static-linux-arm64
|
- bin/{{NAME}}-static-linux-arm64
|
||||||
commands: |
|
commands: |
|
||||||
hace clean
|
hace clean
|
||||||
./build_static.sh
|
./build_static.sh
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
# TARTRAZINE
|
# TARTRAZINE
|
||||||
|
|
||||||
|
[](https://github.com/ralsina/tartrazine/actions/workflows/ci.yml)
|
||||||
|
[](https://codecov.io/gh/ralsina/tartrazine)
|
||||||
|
|
||||||
Tartrazine is a library to syntax-highlight code. It is
|
Tartrazine is a library to syntax-highlight code. It is
|
||||||
a port of [Pygments](https://pygments.org/) to
|
a port of [Pygments](https://pygments.org/) to
|
||||||
[Crystal](https://crystal-lang.org/).
|
[Crystal](https://crystal-lang.org/).
|
||||||
|
@ -28,6 +28,7 @@ bad_in_chroma = {
|
|||||||
"#{__DIR__}/tests/octave/test_multilinecomment.txt",
|
"#{__DIR__}/tests/octave/test_multilinecomment.txt",
|
||||||
"#{__DIR__}/tests/php/test_string_escaping_run.txt",
|
"#{__DIR__}/tests/php/test_string_escaping_run.txt",
|
||||||
"#{__DIR__}/tests/python_2/test_cls_builtin.txt",
|
"#{__DIR__}/tests/python_2/test_cls_builtin.txt",
|
||||||
|
"#{__DIR__}/tests/bqn/test_syntax_roles.txt", # This one only fails in CI
|
||||||
}
|
}
|
||||||
|
|
||||||
known_bad = {
|
known_bad = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user