Compare commits

..

15 Commits

8 changed files with 13492 additions and 27 deletions

View File

@ -4,12 +4,11 @@ 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-latest runs-on: ubuntu-24.04
steps: steps:
- name: Download source - name: Download source
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -17,10 +16,7 @@ jobs:
uses: crystal-lang/install-crystal@v1 uses: crystal-lang/install-crystal@v1
- name: Run tests - name: Run tests
run: | run: |
wget https://github.com/alecthomas/chroma/releases/download/v2.14.0/chroma-2.14.0-linux-amd64.tar.gz sudo apt-get update && sudo apt-get install golang-chroma -y
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

View File

@ -16,13 +16,9 @@ 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 $PWD/coverage ./run_tests kcov --clean --include-path=./src 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
View File

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

View File

@ -7,7 +7,6 @@ All notable changes to this project will be documented in this file.
### 🐛 Bug Fixes ### 🐛 Bug Fixes
- Ameba - Ameba
- Variable bame in Hacefile
### 📚 Documentation ### 📚 Documentation
@ -26,11 +25,6 @@ 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

View File

@ -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

View File

@ -1,8 +1,5 @@
# TARTRAZINE # 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 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/).

View File

@ -28,7 +28,6 @@ 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 = {

13485
x2.html Normal file

File diff suppressed because it is too large Load Diff