Skip to content
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

Test/mermaid diagram #65

Closed
wants to merge 62 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
2ec8630
first commit
Oran-Dan Oct 5, 2023
25b09af
json files added for Transfer and actions, Appstate is problematic
Oran-Dan Oct 6, 2023
7f1e9e1
json files added until handle_siopv2
Oran-Dan Oct 6, 2023
dd23ba7
bug with json recognizing struct, problem is PasswordRequired, switch…
Oran-Dan Oct 9, 2023
8b55bd6
json files finished for actions and transferstates
Oran-Dan Oct 11, 2023
5be6dd0
added comments
Oran-Dan Oct 11, 2023
5e55671
resolved PR comments
Oran-Dan Oct 16, 2023
246d950
resolved 2nd review
Oran-Dan Oct 17, 2023
f2a1de1
feat: refactor backend
nanderstabel Oct 10, 2023
e7d17fb
fix: deprecate Selection
nanderstabel Oct 10, 2023
6b690be
fix: remove user-prompt bindings
nanderstabel Oct 10, 2023
f42ad82
test: add unit tests
nanderstabel Oct 10, 2023
6e6cf5d
fix: fix rebase
nanderstabel Oct 17, 2023
e39d2dc
fix: update bindings
nanderstabel Oct 17, 2023
b4d53a8
fix: remove redundant TransferState
nanderstabel Oct 3, 2023
ac2c4bb
test: add `test_app_state_serialize` unit test
nanderstabel Oct 17, 2023
5fb068a
docs: improve description
nanderstabel Oct 17, 2023
0939e54
fix: replace TransferState in tests
nanderstabel Oct 18, 2023
4165b9e
WIP
nanderstabel Sep 29, 2023
e167bec
WIP
nanderstabel Oct 2, 2023
7ee64b3
add workflow
nanderstabel Oct 3, 2023
b4c5ffb
fix: fix workflow
nanderstabel Oct 3, 2023
b898db1
fix: add src-taur
nanderstabel Oct 3, 2023
b930086
fix: remove dot
nanderstabel Oct 3, 2023
6e0116e
fix: add src-tauri, remove sleep 100
nanderstabel Oct 3, 2023
829df7b
fix: add credential_issuer folder
nanderstabel Oct 3, 2023
67e1dc7
fix: fix cargo test, adjust gitignore
nanderstabel Oct 3, 2023
54f7bc7
test
nanderstabel Oct 3, 2023
6a4d211
test
nanderstabel Oct 3, 2023
b1040e0
test
nanderstabel Oct 3, 2023
78c58f9
test
nanderstabel Oct 3, 2023
08df97b
fix: should work now
nanderstabel Oct 3, 2023
14d9955
fix: install packages
nanderstabel Oct 3, 2023
70e19d4
test: add linebreak
nanderstabel Oct 3, 2023
c7ed02a
test
nanderstabel Oct 3, 2023
4b2fff1
test: use forked action
nanderstabel Oct 3, 2023
a7084a6
test: remove version
nanderstabel Oct 3, 2023
3046edd
test
nanderstabel Oct 3, 2023
9566615
test
nanderstabel Oct 3, 2023
812158a
test
nanderstabel Oct 3, 2023
ee9cbcc
test
nanderstabel Oct 3, 2023
b4af7c9
test: add javascriptcoregtk-4.1
nanderstabel Oct 3, 2023
df0c5b1
test
nanderstabel Oct 3, 2023
2400144
fix: fix warnings
nanderstabel Oct 3, 2023
f5dfcc1
test: add RUSTFLAGS="-Awarnings"
nanderstabel Oct 3, 2023
c9e3003
tst: add icons
nanderstabel Oct 3, 2023
17351b0
test: add icons
nanderstabel Oct 3, 2023
b758955
test: uncomment
nanderstabel Oct 3, 2023
f84fbab
test
nanderstabel Oct 3, 2023
629b738
test: use GHCR
nanderstabel Oct 4, 2023
ea26500
test
nanderstabel Oct 4, 2023
3f32b61
test
nanderstabel Oct 4, 2023
28c0d4c
test: use GITHUB_TOKEN
nanderstabel Oct 4, 2023
8d0908b
test
nanderstabel Oct 4, 2023
32181c1
test: switch
nanderstabel Oct 4, 2023
e4f5114
test
nanderstabel Oct 4, 2023
fd05b5d
fix: set icon
nanderstabel Oct 4, 2023
83211e0
WIP
nanderstabel Oct 4, 2023
cb04c8f
chore: update gitignore
nanderstabel Oct 6, 2023
c5a747e
Revert "WIP"
nanderstabel Oct 6, 2023
f704cc2
fix: rebase cleanup
nanderstabel Oct 18, 2023
920352b
fix: remove unused dependencies
nanderstabel Oct 18, 2023
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
35 changes: 35 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Run Tests

on:
push:
branches: [test/mermaid-diagram]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Login to GitHub Package Registry
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.repository }} --password-stdin

- name: Pull Docker Image
run: |
docker pull ghcr.io/impierce/credential_issuer:latest

- name: Run Docker Container
run: docker run -d --name credential_issuer -p 8000:8000 ghcr.io/impierce/credential_issuer:latest

- name: Install Packages
run: |
sudo apt update
sudo apt-get install -y libwebkit2gtk-4.1-dev build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev libsoup-3.0-dev javascriptcoregtk-4.1

- name: Run Tests
run: |
cargo test --manifest-path src-tauri/Cargo.toml

- name: Stop Docker Container
run: docker stop credential_issuer
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ vite.config.ts.timestamp-*
.env
.env.*
!.env.example
.snapshot
2 changes: 1 addition & 1 deletion src-tauri/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/target/
**/target/
.cargo

gen/*
Expand Down
27 changes: 27 additions & 0 deletions src-tauri/1.mermaid
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
title: Node
---
flowchart LR
classDef action fill:#999,color:#000;
GetState1:::action
GetState2:::action
CreateNew(CreateNew):::action
UnlockStorage(UnlockStorage):::action

classDef payload fill:#CCC,color:#555,text-align:left;
P1("`name: Ferris Crabman
picture: 129408
theme: system
password: sup3rSecr3t
`"):::payload
P2("`password: sup3rSecr3t`"):::payload

subgraph o
direction LR
Initial[[default_state.json]] --- GetState1(GetState) --> B[[check_state.json]]
B --- CreateNew --> C[[new_profile_created.json]]
P1 -.-> CreateNew
C --- GetState2(GetState) --> D[[password_required.json]]
D --- UnlockStorage --> E[[storage_unlocked.json]]
P2 -.-> UnlockStorage
end
Loading
Loading