Bump tokio from 1.38.0 to 1.41.1 #3679
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: rust | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ '**' ] | |
env: | |
CARGO_TERM_COLOR: always | |
RUSTFLFAGS: "-D warnings" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup BuildX | |
uses: docker/setup-buildx-action@v2 | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Get tags | |
run: git fetch --tags origin | |
- name: Build dev image | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
file: Dockerfile | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
target: dev-ci | |
tags: josh-ci-dev:latest | |
push: false | |
load: true | |
- name: Run tests | |
uses: addnab/docker-run-action@v3 | |
with: | |
image: josh-ci-dev:latest | |
options: -v ${{ github.workspace }}:/github/workspace -w /github/workspace | |
run: | | |
set -e -x | |
# Formatting | |
cargo fmt -- --check | |
# Unit tests | |
cargo test --workspace --all | |
# Integration tests | |
cargo build --workspace --all-targets --features hyper_cgi/test-server | |
( cd josh-ssh-dev-server ; go build -o "${CARGO_TARGET_DIR}/josh-ssh-dev-server" ) | |
sh run-tests.sh --verbose tests/filter/**.t | |
sh run-tests.sh --verbose tests/proxy/**.t |