Skip to content

Split Tests by Modified Path for PR #883

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,35 +1,18 @@
name: Tests
name: Implant Tests

on:
workflow_dispatch: ~
push:
branches: [ main ]
pull_request:
branches: [ main ]
paths:
- implants/**
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think some stuff in bin needs to be included.
create_file_dll and reflective_loader comes to mind.
Also I'd double check how the grpc defs get copied from tavern ---> implants.


env:
CARGO_TERM_COLOR: always

jobs:
tavern:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-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: 60
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/tavern-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Tavern Tests

on:
workflow_dispatch: ~
push:
branches: [ main ]
pull_request:
branches: [ main ]
paths:
- tavern/**

env:
CARGO_TERM_COLOR: always

jobs:
tavern:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-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