Skip to content

Commit

Permalink
with spelling config
Browse files Browse the repository at this point in the history
  • Loading branch information
magick93 committed Jan 12, 2025
1 parent ffde278 commit d70951e
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 11 deletions.
20 changes: 20 additions & 0 deletions .github/spellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
matrix:
- name: Markdown
aspell:
lang: en
dictionary:
wordlists:
- .wordlist.txt
encoding: utf-8
pipeline:
- pyspelling.filters.markdown:
markdown_extensions:
- pymdownx.superfences
- pyspelling.filters.html:
comments: false
ignores:
- code
- pre
sources:
- "**/*.md"
default_encoding: utf-8
46 changes: 35 additions & 11 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- stable
- 'pr/*'
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
merge_group:

concurrency:
Expand All @@ -27,8 +28,9 @@ env:
# Enable portable to prevent issues with caching `blst` for the wrong CPU type
# TEST_FEATURES: portable
jobs:

check-labels:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
name: Check for 'skip-ci' label
outputs:
skip_ci: ${{ steps.set-output.outputs.SKIP_CI }}
Expand All @@ -54,17 +56,21 @@ jobs:
target-branch-check:
name: target-branch-check
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
if: github.event_name == 'pull_request' || github.event_name == 'merge_group'
steps:
- name: Check that the pull request is not targeting the stable branch
run: test ${{ github.base_ref }} != "stable"
run: |
if [[ "${{ github.base_ref }}" == "stable" && "${{ github.head_ref }}" != "unstable" ]]; then
echo "Pull requests to the stable branch can only come from the unstable branch."
exit 1
fi
release-tests-ubuntu:
name: release-tests-ubuntu
needs: [check-labels]
if: needs.check-labels.outputs.skip_ci != 'true'
# Use self-hosted runners only on the sigp repo.
runs-on: ubuntu-latest #${{ github.repository == 'sigp/anchor' && fromJson('["self-hosted", "linux", "CI", "large"]') || 'ubuntu-latest' }}
runs-on: ubuntu-22.04 #${{ github.repository == 'sigp/anchor' && fromJson('["self-hosted", "linux", "CI", "large"]') || 'ubuntu-22.04' }}
steps:
- uses: actions/checkout@v4
- name: Get latest version of stable Rust
Expand All @@ -86,7 +92,7 @@ jobs:
needs: [check-labels]
if: needs.check-labels.outputs.skip_ci != 'true'
# Use self-hosted runners only on the sigp repo.
runs-on: ubuntu-latest #${{ github.repository == 'sigp/anchor' && fromJson('["self-hosted", "linux", "CI", "large"]') || 'ubuntu-latest' }}
runs-on: ubuntu-22.04 #${{ github.repository == 'sigp/anchor' && fromJson('["self-hosted", "linux", "CI", "large"]') || 'ubuntu-22.04' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
Expand All @@ -104,7 +110,7 @@ jobs:
run: sccache --show-stats
check-code:
name: check-code
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
env:
CARGO_INCREMENTAL: 1
steps:
Expand All @@ -130,9 +136,10 @@ jobs:
#run: CARGO_HOME=$(readlink -f $HOME) make vendor
- name: Markdown-linter
run: make mdlint

check-msrv:
name: check-msrv
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install Rust at Minimum Supported Rust Version (MSRV)
Expand All @@ -146,7 +153,7 @@ jobs:
name: cargo-udeps
needs: [check-labels]
if: needs.check-labels.outputs.skip_ci != 'true'
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Get latest version of nightly Rust
Expand All @@ -168,17 +175,19 @@ jobs:
RUSTFLAGS: ""
spell-check:
name: spellcheck
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
# Uses the canonical version so that the version is up to date:
# https://github.com/rojopolis/spellcheck-github-actions?tab=readme-ov-file#using-a-canonical-version
- uses: rojopolis/spellcheck-github-actions@v0
- uses: rojopolis/[email protected]
with:
config_path: .github/spellcheck.yml
# cli-check:
# name: cli-check
# needs: [check-labels]
# if: needs.check-labels.outputs.skip_ci != 'true'
# runs-on: ubuntu-latest
# runs-on: ubuntu-22.04
# steps:
# - uses: actions/checkout@v4
# - name: Get latest version of stable Rust
Expand All @@ -188,3 +197,18 @@ jobs:
# cache-target: release
# - name: Run Makefile to trigger the bash script
# run: make cli
cargo-sort:
name: cargo-sort
needs: [check-labels]
if: needs.check-labels.outputs.skip_ci != 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get latest version of stable Rust
uses: moonrepo/setup-rust@v1
with:
channel: stable
cache-target: release
bins: cargo-sort
- name: Run cargo sort to check if Cargo.toml files are sorted
run: cargo sort --check --workspace

0 comments on commit d70951e

Please sign in to comment.