fix testing quine on CI #63
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: CI | |
on: [push, pull_request] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install misspell | |
run: | | |
curl -L -o ./install-misspell.sh https://git.io/misspell | |
sh ./install-misspell.sh -b . | |
- run: ./misspell -error README.md | |
- name: Check workflow files | |
run: | | |
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) | |
./actionlint -color | |
shell: bash | |
quine: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.2' | |
- name: Validate quine | |
run: | | |
cd ./q | |
ruby gen_gen_aa.rb > gen_aa.rb | |
ruby gen_aa.rb > aa.rb | |
ruby aa.rb > ab.rb | |
diff -u aa.rb ab.rb |