This commit is contained in:
JimChenWYU
2024-09-24 16:17:31 +08:00
parent b54458c433
commit 0fa13379e4
2 changed files with 15 additions and 22 deletions

View File

@@ -16,7 +16,6 @@ jobs:
matrix:
rust:
- stable
- beta
- nightly
steps:
@@ -59,6 +58,12 @@ jobs:
chmod +x /usr/local/bin/flatc
rm -rf Linux.flatc.binary.g++-13.zip
- name: toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust }}
# components: rustfmt, clippy
- name: checkout
uses: actions/checkout@v2
@@ -67,14 +72,9 @@ jobs:
run: |
make e2e-server > /dev/null &
make probe-e2e
env:
PORT: 9000
- name: e2e test
uses: actions-rs/cargo@v1
with:
command: test
args: -p e2e_test --lib
run: cargo test -p e2e_test --lib
- name: cache cargo
uses: actions/cache@v3

View File

@@ -16,7 +16,6 @@ jobs:
matrix:
rust:
- stable
- beta
- nightly
steps:
@@ -59,25 +58,19 @@ jobs:
chmod +x /usr/local/bin/flatc
rm -rf Linux.flatc.binary.g++-13.zip
- name: toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust }}
# components: rustfmt, clippy
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy
- name: cargo build
uses: actions-rs/cargo@v1
with:
command: build
run: cargo build
- name: cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --all --exclude e2e_test
run: cargo test --all --exclude e2e_test
- name: cache cargo
uses: actions/cache@v3