#297 los peligros del ChatGPT #81
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Comprueba README" | |
on: | |
push: | |
paths: | |
- 'README.md' | |
- 'words.dic' | |
pull_request: | |
paths: | |
- 'README.md' | |
- 'words.dic' | |
jobs: | |
OrtografiaReadme: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Prerrequisites | |
run: | | |
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install -y libtext-hunspell-perl autopoint | |
- uses: actions/checkout@v4 | |
- name: Usa install-with-cpm | |
uses: perl-actions/install-with-cpm@v1 | |
with: | |
install: | | |
Test::Text | |
TAP::Harness | |
sudo: true | |
- name: Comprueba la ortografía | |
run: | | |
curl https://raw.githubusercontent.com/JJ/Test-Text/master/data/Spanish.aff -o Spanish.aff | |
curl https://raw.githubusercontent.com/SublimeText/Dictionaries/master/Spanish.dic -o Spanish.dic | |
echo "use Test::Text; just_check( '.','.', 'Spanish' ); " > just_check.t | |
rm TODO.md # No nos interesan | |
perl -MTAP::Harness -e 'use utf8; my $harness = TAP::Harness->new( { verbosity => 0} ); die "FAIL" if $harness->runtests( "just_check.t" )->failed;' |