mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-03 16:15:28 +01:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 6.1.0 to 7.0.1. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/d23441a48e516b6c34aea4fa41551a30e30af803...3d3c42e5aac5ba805825da76410c181273ba90b1) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
on:
|
|
workflow_call:
|
|
inputs:
|
|
job_name:
|
|
type: string
|
|
required: true
|
|
rustup_toolchain:
|
|
type: string
|
|
required: true
|
|
|
|
jobs:
|
|
linux-cli-test:
|
|
name: ${{ inputs.job_name }}
|
|
runs-on: [ self-hosted, 1ES.Pool=1es-vscode-oss-ubuntu-22.04-x64, "JobId=linux-cli-test-${{ inputs.job_name }}-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}" ]
|
|
env:
|
|
RUSTUP_TOOLCHAIN: ${{ inputs.rustup_toolchain }}
|
|
steps:
|
|
- name: Checkout microsoft/vscode
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
lfs: true
|
|
|
|
- name: Install Rust
|
|
run: |
|
|
set -e
|
|
curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal --default-toolchain $RUSTUP_TOOLCHAIN
|
|
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
|
|
|
- name: Set Rust version
|
|
run: |
|
|
set -e
|
|
rustup default $RUSTUP_TOOLCHAIN
|
|
rustup update $RUSTUP_TOOLCHAIN
|
|
rustup component add clippy
|
|
|
|
- name: Check Rust versions
|
|
run: |
|
|
set -e
|
|
rustc --version
|
|
cargo --version
|
|
|
|
- name: Clippy lint
|
|
run: cargo clippy -- -D warnings
|
|
working-directory: cli
|
|
|
|
- name: 🧪 Run unit tests
|
|
run: cargo test
|
|
working-directory: cli
|