Add +100 missing builtin methods/variables #241
Workflow file for this run
This file contains hidden or 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: Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| lint: | |
| name: Lint checks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - uses: taiki-e/install-action@just | |
| - name: Run lint checks | |
| run: just lint | |
| env: | |
| RUSTFLAGS: -D warnings | |
| run-tests: | |
| name: Run tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| - name: Run tests | |
| run: cargo test --lib | |
| integration-tests: | |
| name: Run integration tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| - name: Run integration tests | |
| run: cargo test -p pine-integration-tests --test integration -- --nocapture | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| # Cross-checks the fixtures against PineTS | |
| - name: Cross-check against PineTS | |
| working-directory: tests/pinets | |
| run: | | |
| npm install | |
| node check.mjs | |
| corpus-tests: | |
| name: Run corpus tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| - name: Run corpus tests | |
| run: cargo test -p pine-integration-tests --test corpus -- --nocapture | |
| codspeed: | |
| name: Benchmarks (CodSpeed) | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - uses: taiki-e/install-action@v2 | |
| with: | |
| tool: cargo-codspeed | |
| - name: Build the benchmarks | |
| run: cargo codspeed build | |
| - name: Run the benchmarks | |
| uses: CodSpeedHQ/action@v3 | |
| with: | |
| run: cargo codspeed run | |
| token: ${{ secrets.CODSPEED_TOKEN }} | |
| examples: | |
| name: Build Examples | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - uses: extractions/setup-just@v2 | |
| - name: Compile all examples | |
| run: just compile-examples |