Skip to content

Commit

Permalink
Migrate to dtolnay/rust-toolchain. Cargo update (#238)
Browse files Browse the repository at this point in the history
* Migrato to dtolnay/rust-toolchain

* Using ${{ matrix.rust }} in .github/workflows/ci.yaml

* stable instead of master

* actions/checkout@v3

* cargo update

* 2.1.1
  • Loading branch information
koropets authored Jan 4, 2024
1 parent 29a5683 commit 95054da
Show file tree
Hide file tree
Showing 3 changed files with 540 additions and 555 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand Down Expand Up @@ -75,18 +75,15 @@ jobs:

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

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt

- name: Cargo cache
uses: actions/cache@v3
Expand Down Expand Up @@ -164,14 +161,12 @@ jobs:
kubectl get models > /dev/null
- name: Unit tests
uses: actions-rs/cargo@v1
env:
KUBERNETES_SERVICE_HOST: localhost
KUBERNETES_SERVICE_PORT: 8443
RUST_BACKTRACE: 1
with:
command: test
args: --tests -- --test-threads=1
run:
cargo test --tests -- --test-threads=1

- name: Integration Tests
env:
Expand All @@ -190,7 +185,7 @@ jobs:
DOCKER_REGISTRY: ghcr.io
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand Down
Loading

0 comments on commit 95054da

Please sign in to comment.