diff --git a/.github/workflows/coverage-2.yml b/.github/workflows/coverage-2.yml index a7cf3639..38edd17c 100644 --- a/.github/workflows/coverage-2.yml +++ b/.github/workflows/coverage-2.yml @@ -2,9 +2,9 @@ name: Rust33 on: push: - branches: [ "main" ] + branches: [ "master" ] pull_request: - branches: [ "main" ] + branches: [ "master" ] env: CARGO_TERM_COLOR: always @@ -14,6 +14,11 @@ jobs: integration-tests: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v2 + # Start Docker Compose + - name: Start Docker Compose + run: docker-compose up -d + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 - uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2 diff --git a/.github/workflows/coverage-tarp.yml b/.github/workflows/coverage-tarp.yml index 86c60004..b3a9cba9 100644 --- a/.github/workflows/coverage-tarp.yml +++ b/.github/workflows/coverage-tarp.yml @@ -17,6 +17,11 @@ jobs: image: xd009642/tarpaulin:develop-nightly options: --security-opt seccomp=unconfined steps: + - uses: actions/checkout@v2 + # Start Docker Compose + - name: Start Docker Compose + run: docker-compose up -d + - name: Checkout repository uses: actions/checkout@v2 diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index ca443156..ff73f485 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -11,6 +11,11 @@ jobs: name: Run rust test runs-on: ubuntu-latest steps: + - uses: actions/checkout@v2 + # Start Docker Compose + - name: Start Docker Compose + run: docker-compose up -d + - uses: actions/checkout@v4 - name: Install Rust run: rustup update stable diff --git a/.github/workflows/coverage2.yml b/.github/workflows/coverage2.yml new file mode 100644 index 00000000..44a9c66a --- /dev/null +++ b/.github/workflows/coverage2.yml @@ -0,0 +1,28 @@ +name: Coverage2 + +on: [pull_request, push] + +jobs: + coverage2: + runs-on: ubuntu-latest + env: + CARGO_TERM_COLOR: always + steps: + - uses: actions/checkout@v2 + # Start Docker Compose + - name: Start Docker Compose + run: docker-compose up -d + + - uses: actions/checkout@v4 + - name: Install Rust + run: rustup update stable + - name: Install cargo-llvm-cov + uses: taiki-e/install-action@cargo-llvm-cov + - name: Generate code coverage + run: cargo llvm-cov --lcov --output-path lcov.info + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos + files: lcov.info + fail_ci_if_error: true