Compare commits

..

15 Commits

8 changed files with 27 additions and 13492 deletions

View File

@ -4,11 +4,12 @@ on:
# different versions of chroma. Need to get the same one in my
# local env and in CI
workflow_dispatch:
push:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
steps:
- name: Download source
uses: actions/checkout@v4
@ -16,7 +17,10 @@ jobs:
uses: crystal-lang/install-crystal@v1
- name: Run tests
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
crystal tool format --check
crystal spec -v

View File

@ -16,9 +16,13 @@ jobs:
- name: Run tests using kcov
run: |
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
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
chmod +x codecov
./codecov -t ${CODECOV_TOKEN} -s coverage

2
.gitignore vendored
View File

@ -10,3 +10,5 @@ shard.lock
.crystal/
venv/
.croupier
coverage/
run_tests

View File

@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file.
### 🐛 Bug Fixes
- Ameba
- Variable bame in Hacefile
### 📚 Documentation
@ -25,6 +26,11 @@ All notable changes to this project will be documented in this file.
- Switch from Makefile to Hacefile
- Added do_release script
- Fix markdown check
### Bump
- Release v0.6.4
## [0.6.1] - 2024-08-25

View File

@ -37,13 +37,13 @@ tasks:
dependencies:
- bin/tartrazine
commands: |
rm ${HOME}/.local/bin/{{name}}
cp bin/hace ${HOME}/.local/bin/{{name}}
rm ${HOME}/.local/bin/{{NAME}}
cp bin/hace ${HOME}/.local/bin/{{NAME}}
static:
outputs:
- bin/{{name}}-static-linux-amd64
- bin/{{name}}-static-linux-arm64
- bin/{{NAME}}-static-linux-amd64
- bin/{{NAME}}-static-linux-arm64
commands: |
hace clean
./build_static.sh

View File

@ -1,5 +1,8 @@
# TARTRAZINE
[![Tests](https://github.com/ralsina/tartrazine/actions/workflows/ci.yml/badge.svg)](https://github.com/ralsina/tartrazine/actions/workflows/ci.yml)
[![codecov](https://codecov.io/gh/ralsina/tartrazine/branch/main/graph/badge.svg?token=52XBPNL99F)](https://codecov.io/gh/ralsina/tartrazine)
Tartrazine is a library to syntax-highlight code. It is
a port of [Pygments](https://pygments.org/) to
[Crystal](https://crystal-lang.org/).

View File

@ -28,6 +28,7 @@ bad_in_chroma = {
"#{__DIR__}/tests/octave/test_multilinecomment.txt",
"#{__DIR__}/tests/php/test_string_escaping_run.txt",
"#{__DIR__}/tests/python_2/test_cls_builtin.txt",
"#{__DIR__}/tests/bqn/test_syntax_roles.txt", # This one only fails in CI
}
known_bad = {

13485
x2.html

File diff suppressed because it is too large Load Diff