Cp/small fixes (#310) #883
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: Tests | |
on: | |
workflow_dispatch: ~ | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
tavern: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- macOS-latest | |
- windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: ⚡ Setup Golang | |
uses: actions/setup-go@v3 | |
with: | |
go-version-file: go.mod | |
cache: true | |
- name: 🔨 Build | |
run: go build -v -o ./build/tavern ./tavern | |
- name: 🔎 Test | |
run: go test -v -race -coverprofile='coverage.out' -covermode=atomic ./tavern/... | |
- name: 📶 Upload Coverage Results | |
uses: codecov/codecov-action@v3 | |
implants: | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 30 | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- macOS-latest | |
- windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- if: matrix.os == 'windows-latest' | |
run: start-process -filepath powershell -ArgumentList '/c','Set-MpPreference -DisableRealtimeMonitoring $true' -verb RunAs | |
name: 👾 Disable defender | |
shell: powershell | |
- name: Setup Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly-2023-09-04 | |
default: true | |
profile: minimal | |
- name: rust-cache | |
uses: Swatinem/rust-cache@v2 | |
with: | |
workspaces: "./implants/ -> ../target" | |
- name: Install latest nextest & cargo-llvm-cov release | |
uses: taiki-e/[email protected] | |
with: | |
tool: nextest,cargo-llvm-cov | |
- name: 🔎 Run tests | |
run: cd ./implants/ && cargo llvm-cov nextest --lcov --output-path lcov.info | |
- name: 📶 Upload Coverage Results | |
uses: codecov/codecov-action@v3 |