👷 Allow redirects #4
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: 👮♂️ Sanity checks | |
on: [push, pull_request, workflow_dispatch] | |
concurrency: | |
group: ${{github.workflow}}-${{github.ref}} | |
cancel-in-progress: true | |
jobs: | |
prettify-n-test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
architecture: | |
- x64 | |
python_version: | |
- 3.11 | |
node_version: | |
- 20 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node_version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node_version }} | |
- name: Run Prettier | |
run: npx prettier -c '**/*.{md,yml,yaml}' | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python_version }} | |
architecture: ${{ matrix.architecture }} | |
- name: Check formatting with Black | |
uses: psf/black@stable | |
with: | |
options: "--check --verbose" | |
src: "./scripts" | |
- name: Check private key recovery | |
run: | | |
pip install ecdsa | |
python scripts/recover_private_key.py | |
codespell: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Run codespell | |
uses: codespell-project/[email protected] | |
with: | |
check_filenames: true | |
skip: ./.git | |
validate-links: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
ruby_version: | |
- 3.3 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby_version }} | |
bundler-cache: true | |
- name: Install awesome_bot | |
run: gem install awesome_bot | |
- name: Validate URLs | |
run: awesome_bot ./*.md scripts/*.py --allow-dupe --allow-redirect --request-delay 0.4 |