docs(README.md): ✏️ Update docs to show the newest changes #52
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: 🎡 Continuous Integration | |
on: | |
push: | |
branches: ['main'] | |
pull_request: | |
branches: ['main'] | |
# If new code is pushed to a PR branch, then cancel in progress workflows for that PR. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 📚 Checkout | |
uses: actions/checkout@v4 | |
- name: Install stable toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt | |
- name: 💄 Check formatting | |
run: cargo fmt --check | |
- name: Create duplication report | |
run: | | |
npx jscpd -g -r 'markdown'> output | |
printf '%s\n\n%s\n' "$(cat report/jscpd-report.md)" "$(cat output)" >> $GITHUB_STEP_SUMMARY | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
checks: write | |
strategy: | |
fail-fast: false | |
matrix: | |
toolchain: | |
- stable | |
- beta | |
- nightly | |
steps: | |
- name: 📚 Checkout | |
uses: actions/checkout@v4 | |
- name: 🔄 Install ${{ matrix.toolchain }} | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
components: clippy | |
- name: 🦀 Run clippy | |
uses: giraffate/clippy-action@v1 | |
with: | |
reporter: 'github-pr-check' | |
github_token: ${{ secrets.GH_TOKEN }} | |
- name: 🔧 Build | |
run: cargo build --verbose | |
- name: 🧪 Run tests | |
run: cargo test --verbose |