From 111f7998b3858aa447db14869bc50e30cba12390 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Imobach=20Gonz=C3=A1lez=20Sosa?= Date: Fri, 30 Jun 2023 11:09:57 +0100 Subject: [PATCH 1/3] CI: upgrade to Coveralls GitHub actions v2 --- .github/workflows/ci.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e5c56bcbf..c303974c6d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,10 +47,9 @@ jobs: run: npm test -- --coverage - name: Coveralls GitHub Action - uses: coverallsapp/github-action@v1 + uses: coverallsapp/github-action@v2 with: base-path: ./web - path-to-lcov: ./web/coverage/lcov.info flag-name: frontend parallel: true @@ -93,12 +92,12 @@ jobs: run: bundle exec rspec - name: Coveralls GitHub Action - uses: coverallsapp/github-action@v1 + uses: coverallsapp/github-action@v2 with: base-path: ./service - path-to-lcov: ./service/coverage/lcov.info flag-name: backend parallel: true + debug: true ruby_linter: runs-on: ubuntu-latest From 197cfec6c5b5b7ef32cfbb63ae007f5af37a20d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Imobach=20Gonz=C3=A1lez=20Sosa?= Date: Fri, 30 Jun 2023 11:10:22 +0100 Subject: [PATCH 2/3] CI: enable code coverage reporting for Rust --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c303974c6d..e612e34b87 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -171,9 +171,12 @@ jobs: strategy: fail-fast: false + matrix: + distro: [ "tumbleweed" ] container: - image: registry.opensuse.org/opensuse/tumbleweed:latest + image: registry.opensuse.org/yast/head/containers_${{matrix.distro}}/yast-ruby + options: --security-opt seccomp=unconfined steps: @@ -188,17 +191,34 @@ jobs: run: zypper --non-interactive install rustup - name: Install required packages - run: zypper --non-interactive install python-langtable-data openssl-3 libopenssl-3-devel + run: zypper --non-interactive install python-langtable-data openssl-3 libopenssl-3-devel jq - name: Install Rust toolchains run: rustup toolchain install stable + - name: Install cargo-binstall + uses: taiki-e/install-action@v2 + with: + tool: cargo-binstall + + - name: Install Tarpaulin (for code coverage) + run: cargo-binstall --no-confirm cargo-tarpaulin + - name: Run the tests - run: cargo test --verbose + run: cargo tarpaulin --out xml - name: Lint formatting run: cargo fmt --all -- --check + - name: Coveralls GitHub Action + uses: coverallsapp/github-action@v2 + with: + base-path: ./rust + format: cobertura + flag-name: rust-backend + parallel: true + debug: true + integration-tests: timeout-minutes: 60 runs-on: ubuntu-latest @@ -285,7 +305,7 @@ jobs: finish: runs-on: ubuntu-latest - needs: [frontend_build, ruby_tests] + needs: [frontend_build, ruby_tests, rust_ci] steps: From 9336b1a8bbd674f3ccf6df05c20b5d680dfdab94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Imobach=20Gonz=C3=A1lez=20Sosa?= Date: Fri, 30 Jun 2023 14:25:50 +0100 Subject: [PATCH 3/3] CI: disable debugging for Coveralls actions --- .github/workflows/ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e612e34b87..5e0775f611 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -97,7 +97,6 @@ jobs: base-path: ./service flag-name: backend parallel: true - debug: true ruby_linter: runs-on: ubuntu-latest @@ -217,7 +216,6 @@ jobs: format: cobertura flag-name: rust-backend parallel: true - debug: true integration-tests: timeout-minutes: 60