Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sc 2 clean scraper code #6

Merged
merged 3 commits into from
Jan 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 18 additions & 32 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,25 @@
name: Rust CI
name: Cargo Build & Test

on:
push:
branches:
- main
pull_request:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Rust
uses: actions/setup-rust@v1
with:
toolchain: stable
env:
CARGO_TERM_COLOR: always

- name: Build and Test
run: |
cargo build --verbose
cargo test --verbose

format:
jobs:
build_and_test:
name: Rust project - latest
runs-on: ubuntu-latest

strategy:
matrix:
toolchain:
- stable
# - beta
# - nightly
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Rust
uses: actions/setup-rust@v1
with:
toolchain: stable

- name: Format code
run: cargo fmt -- --check
- uses: actions/checkout@v3
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose
- run: cargo test --verbose
- run: cargo fmt