Skip to content
Merged
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
33 changes: 25 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -93,10 +92,9 @@ 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

Expand Down Expand Up @@ -172,9 +170,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:

Expand All @@ -189,17 +190,33 @@ 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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

so we have third way to install rust stuff? rustup component, cargo install and now cargo-binstall? It start to be quite messy

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Just to clarify: rustup is for managing the rust toolchain. cargo install is for binary crates (building for sources) and cargo-binstall to avoid building for sources.


- 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

integration-tests:
timeout-minutes: 60
runs-on: ubuntu-latest
Expand Down Expand Up @@ -286,7 +303,7 @@ jobs:
finish:
runs-on: ubuntu-latest

needs: [frontend_build, ruby_tests]
needs: [frontend_build, ruby_tests, rust_ci]

steps:

Expand Down