Skip to content
This repository was archived by the owner on Jul 22, 2023. It is now read-only.

Commit 94c3fea

Browse files
authored
Merge pull request #1123 from Calciumdibromid/develop
Release v0.5.0
2 parents 336e7be + 37cddd8 commit 94c3fea

File tree

830 files changed

+10234
-7694
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

830 files changed

+10234
-7694
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Save all text files with linux line endings
2+
* text=auto eol=lf

.github/dependabot.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,31 @@
11
version: 2
22
updates:
33
- package-ecosystem: npm
4-
directory: "/"
4+
directory: "/frontend/"
55
schedule:
66
interval: daily
77
time: "22:30"
88
open-pull-requests-limit: 10
99
- package-ecosystem: cargo
10-
directory: "/"
10+
directory: "/webserver/"
11+
schedule:
12+
interval: daily
13+
time: "22:30"
14+
open-pull-requests-limit: 10
15+
- package-ecosystem: cargo
16+
directory: "/crates/"
17+
schedule:
18+
interval: daily
19+
time: "22:30"
20+
open-pull-requests-limit: 10
21+
- package-ecosystem: cargo
22+
directory: "/frontend/src-tauri/"
23+
schedule:
24+
interval: daily
25+
time: "22:30"
26+
open-pull-requests-limit: 10
27+
- package-ecosystem: cargo
28+
directory: "/frontend/src-wasm/"
1129
schedule:
1230
interval: daily
1331
time: "22:30"

.github/workflows/backend.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

.github/workflows/crates.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: checks
2+
3+
on:
4+
# Triggers the workflow on push or pull request events but only for the main and develop branches
5+
push:
6+
branches: [main, develop]
7+
pull_request:
8+
branches: [main, develop]
9+
paths:
10+
- '.github/workflows/crates.yml'
11+
- 'crates/**'
12+
13+
jobs:
14+
crates:
15+
runs-on: ubuntu-20.04
16+
container: a6543/cabr2_ci:latest
17+
strategy:
18+
fail-fast: true
19+
steps:
20+
- name: Checkout Project
21+
uses: actions/checkout@v2
22+
23+
- name: Set Rust Toolchain
24+
run: rustup default stable
25+
26+
- name: Check formatting crates
27+
run: cd crates && cargo fmt -- --check
28+
29+
- name: Lint crates
30+
run: cd crates && cargo clippy --workspace --all-features -- --deny clippy::all --deny warnings
31+
32+
- name: Build crates
33+
run: cd crates && cargo build --workspace --all-features
34+
35+
- name: Test crates
36+
run: cd crates && cargo test --workspace --all-features

.github/workflows/frontend.yml

Lines changed: 17 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
name: checks
22

33
on:
4-
# Triggers the workflow on push or pull request events but only for the master branch
4+
# Triggers the workflow on push or pull request events but only for the main branch
55
push:
6-
branches: [master, develop]
6+
branches: [main, develop]
77
pull_request:
8-
branches: [master, develop]
8+
branches: [main, develop]
99
paths:
10-
- 'src/**'
11-
- '*.json'
12-
- '*.js'
13-
- '.prettierignore'
14-
- 'yarn.lock'
1510
- '.github/workflows/frontend.yml'
16-
- 'src-wasm/**'
11+
- 'frontend/src/**'
12+
- 'frontend/*.json'
13+
- 'frontend/*.js'
14+
- 'frontend/.prettierignore'
15+
- 'frontend/yarn.lock'
16+
- 'frontend/src-wasm/**'
1717

1818
jobs:
1919
frontend:
@@ -30,27 +30,20 @@ jobs:
3030
run: rustup default stable
3131

3232
- name: Install Dependencies
33-
run: yarn install --frozen-lockfile
33+
run: cd frontend && yarn install --frozen-lockfile
3434

3535
- name: Check Formatting
36-
run: yarn prettier -c src
36+
run: cd frontend && yarn prettier -c src
3737

3838
- name: Eslint
39-
run: yarn lint
39+
run: cd frontend && yarn lint
4040

41-
- name: codespell
42-
uses: codespell-project/actions-codespell@master
43-
with:
44-
check_filenames: true
45-
check_hidden: true
46-
skip: ./.git,./.gitignore,node_modules,dist,yarn.lock,./src/assets,./translations,*.html,./src-tauri
47-
ignore_words_list: crate,ser
41+
- name: Build Tauri Frontend
42+
run: cd frontend && yarn ng build --configuration production
4843

4944
- name: Build WASM binary
50-
run: yarn wasm_lib:release
51-
52-
- name: Build Tauri Frontend
53-
run: yarn ng build --configuration production
45+
# debug compiles faster and everything gets checked in the dedicated wasm ci pipeline
46+
run: cd frontend && yarn wasm_lib:debug
5447

5548
- name: Build Web Frontend
56-
run: yarn ng build --configuration webProd
49+
run: cd frontend && yarn ng build --configuration webProd

.github/workflows/spellcheck.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: checks
2+
3+
on:
4+
# Triggers the workflow on push or pull request events but only for the main and develop branches
5+
push:
6+
branches: [main, develop]
7+
pull_request:
8+
branches: [main, develop]
9+
10+
jobs:
11+
codespell:
12+
runs-on: ubuntu-20.04
13+
strategy:
14+
fail-fast: true
15+
steps:
16+
- name: codespell
17+
uses: codespell-project/actions-codespell@master
18+
with:
19+
check_filenames: true
20+
check_hidden: true
21+
skip: ./.git,./.gitignore,node_modules,dist,yarn.lock,./src/assets,./translations
22+
ignore_words_list: crate,ser
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: checks
2+
3+
on:
4+
# Triggers the workflow on push or pull request events but only for the main and develop branches
5+
push:
6+
branches: [main, develop]
7+
pull_request:
8+
branches: [main, develop]
9+
paths:
10+
- '.github/workflows/frontend-rust.yml'
11+
- 'frontend/src-tauri/**'
12+
13+
jobs:
14+
frontend-rust:
15+
runs-on: ubuntu-20.04
16+
container: a6543/cabr2_ci:latest
17+
strategy:
18+
fail-fast: true
19+
steps:
20+
- name: Checkout Project
21+
uses: actions/checkout@v2
22+
23+
- name: Set Rust Toolchain
24+
run: rustup default stable
25+
26+
- name: Fix Build
27+
run: mkdir -p frontend/dist/CaBr2 && echo "Hello" > frontend/dist/CaBr2/index.html
28+
29+
- name: Check formatting Tauri app
30+
run: cd frontend/src-tauri && cargo fmt -- --check
31+
32+
- name: Lint Tauri app
33+
run: cd frontend/src-tauri && cargo clippy --all-features -- --deny clippy::all --deny warnings
34+
35+
- name: Build Tauri app
36+
run: cd frontend/src-tauri && cargo build
37+
38+
# TODO(692) reactivate when tests are written
39+
# - name: Test Tauri app
40+
# run: cd frontend/src-tauri && cargo test

.github/workflows/wasm-lib.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: checks
2+
3+
on:
4+
# Triggers the workflow on push or pull request events but only for the main and develop branches
5+
push:
6+
branches: [main, develop]
7+
pull_request:
8+
branches: [main, develop]
9+
paths:
10+
- '.github/workflows/wasm-lib.yml'
11+
- 'frontend/src-wasm/**'
12+
13+
jobs:
14+
wasm-lib:
15+
runs-on: ubuntu-20.04
16+
container: a6543/cabr2_ci:latest
17+
strategy:
18+
fail-fast: true
19+
steps:
20+
- name: Checkout Project
21+
uses: actions/checkout@v2
22+
23+
- name: Set Rust Toolchain
24+
run: rustup default stable
25+
26+
- name: Check formatting WASM library
27+
run: cd frontend/src-wasm && cargo fmt -- --check
28+
29+
- name: Lint WASM library
30+
run: cd frontend/src-wasm && cargo clippy --all-features -- --deny clippy::all --deny warnings
31+
32+
- name: Build WASM library debug
33+
run: cd frontend/src-wasm && wasm-pack build --out-dir ../cabr2_wasm --dev -- --features debug_build
34+
35+
- name: Build WASM library release
36+
run: cd frontend/src-wasm && wasm-pack build --out-dir ../cabr2_wasm --release
37+
38+
# TODO(692) reactivate when tests are written
39+
# - name: Test WASM library
40+
# run: cd frontend/src-wasm && cargo test

.github/workflows/webserver.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: checks
2+
3+
on:
4+
# Triggers the workflow on push or pull request events but only for the main and develop branches
5+
push:
6+
branches: [main, develop]
7+
pull_request:
8+
branches: [main, develop]
9+
paths:
10+
- '.github/workflows/webserver.yml'
11+
- 'webserver/**'
12+
13+
jobs:
14+
webserver:
15+
runs-on: ubuntu-20.04
16+
container: a6543/cabr2_ci:latest
17+
strategy:
18+
fail-fast: true
19+
steps:
20+
- name: Checkout Project
21+
uses: actions/checkout@v2
22+
23+
- name: Set Rust Toolchain
24+
run: rustup default stable
25+
26+
- name: Check formatting webserver
27+
run: cd webserver && cargo fmt -- --check
28+
29+
- name: Lint webserver
30+
run: cd webserver && cargo clippy --all-features -- --deny clippy::all --deny warnings
31+
32+
- name: Build webserver
33+
run: cd webserver && cargo build
34+
35+
# TODO(692) reactivate when tests are written
36+
# - name: Test Webserver
37+
# run: cd webserver && cargo test

0 commit comments

Comments
 (0)