chore(deps): bump scraper from 0.19.1 to 0.20.0 #121
Workflow file for this run
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: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
cancel-in-progress: ${{ github.ref_name != 'main' }} | |
env: | |
NODE_VERSION: 20 | |
jobs: | |
format: | |
name: Format | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: Boshen/setup-rust@main | |
with: | |
components: rustfmt | |
tools: taplo-cli | |
restore-cache: false | |
# - name: Install Taplo | |
# env: | |
# version: "0.9.1" | |
# run: | | |
# curl -fsSL https://github.com/tamasfe/taplo/releases/latest/download/taplo-full-linux-x86_64.gz \ | |
# gzip -d - | install -m 755 /dev/stdin /usr/local/bin/taplo | |
- run: taplo lint | |
- run: cargo fmt -- --check | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: Boshen/setup-rust@main | |
with: | |
components: clippy | |
cache-key: warm | |
- run: cargo clippy --all-targets --all-features -- -D warnings | |
test: | |
name: Cargo Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- uses: Boshen/setup-rust@main | |
with: | |
# warm cache factory for all other CI jobs | |
# cache `target` directory to avoid download crates | |
save-cache: ${{ github.ref_name == 'main' }} | |
cache-key: warm | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
- run: npm install -g http-server | |
- run: cargo check --all-features | |
- run: cargo test --all-features |