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

Added fmt and clippy workflow from Reveaal #11

Merged
merged 46 commits into from
Dec 11, 2023
Merged
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
caddc6e
Added fmt and clippy workflow from Reveaal
KamyaPA Dec 1, 2023
206a815
added glibc-sourve to workflow
KamyaPA Dec 1, 2023
df10599
added libgtk-3-dev to workflow
KamyaPA Dec 1, 2023
4d1e4a8
added libsoup-3.0-0 to workflow
KamyaPA Dec 1, 2023
0db03f4
changed libsoup in workflow
KamyaPA Dec 1, 2023
6849022
added webkit2gtk-driver to workflow
KamyaPA Dec 1, 2023
c9c8dc9
added javascriptcoregtk-4.0 to workflow
KamyaPA Dec 1, 2023
b42c49b
changed webkit2gtk in workflow
KamyaPA Dec 1, 2023
cfb9aba
Added node dependencies
KamyaPA Dec 1, 2023
64d2830
added some cd to please yarn
KamyaPA Dec 1, 2023
865a28a
added submodules true to workflow
KamyaPA Dec 1, 2023
b372d7a
added git submodules to workflow
KamyaPA Dec 1, 2023
2a17a3a
fixed spellingmistake
KamyaPA Dec 1, 2023
a419128
moved checkout in worspace
KamyaPA Dec 1, 2023
bc5953a
updated submodule url
KamyaPA Dec 1, 2023
eb955ec
added ls for testing in workflow
KamyaPA Dec 1, 2023
a651045
added node npm and yarn to workflow
KamyaPA Dec 1, 2023
3cecce3
fixed spelling mistake
KamyaPA Dec 1, 2023
b2bc00f
added node go npm install
KamyaPA Dec 1, 2023
62d7b07
force upgrade node
KamyaPA Dec 1, 2023
231f1e4
fixed unused package in submodule
KamyaPA Dec 1, 2023
2c3a8ee
Updated clippy workflow
KamyaPA Dec 1, 2023
2873e2d
removed --all-features
KamyaPA Dec 4, 2023
f206297
Ensure safe permissions
atjn Dec 4, 2023
f2a6d65
Merge branch 'main' into 10-add-automatic-linting-and-testing-of-code
atjn Dec 4, 2023
6333927
what happens
atjn Dec 4, 2023
4cbf315
what happens
atjn Dec 4, 2023
f3178da
what happens
atjn Dec 4, 2023
ab4f67a
Finalize the cargo fmt check
atjn Dec 4, 2023
6c1e801
Update checkout version
atjn Dec 4, 2023
7969598
what happens
atjn Dec 4, 2023
38c2206
what happens
atjn Dec 4, 2023
c9a9ed3
fix cache path maybe
atjn Dec 4, 2023
95017e7
fix cache path maybe
atjn Dec 4, 2023
bfb7e12
what happens
atjn Dec 4, 2023
9145369
what happens
atjn Dec 4, 2023
51d5168
what happens
atjn Dec 4, 2023
f41276c
what happens
atjn Dec 4, 2023
90fc836
what happens
atjn Dec 4, 2023
4135d70
what happens
atjn Dec 4, 2023
41219bc
what happens
atjn Dec 4, 2023
5ea4834
what happens
atjn Dec 4, 2023
41e8cc9
Add native dependencies
atjn Dec 4, 2023
5a9ebfa
Try this
atjn Dec 4, 2023
4766a6f
Try that
atjn Dec 4, 2023
e843a18
Readd caching
atjn Dec 4, 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
56 changes: 56 additions & 0 deletions .github/workflows/test_format.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Check formatting

on:
push:
branches: [main]
pull_request:
branches: [main]

permissions:
contents: read

jobs:
fmt:
name: Cargo fmt lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true

- uses: Swatinem/rust-cache@v2

- name: Run fmt lint
run: cargo fmt --all -- --check

clippy:
name: Cargo clippy lint
runs-on: ubuntu-latest
steps:

# DO NOT EDIT THIS MANUALLY, please only use the official installation instructions from:
# https://tauri.app/v1/guides/getting-started/prerequisites#setting-up-linux
- name: Install native Tauri dependencies
run: sudo apt-get install libwebkit2gtk-4.0-dev build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev

- name: Install protobuf compiler
run: sudo apt-get install protobuf-compiler

- uses: actions/checkout@v4
with:
submodules: true

- uses: Swatinem/rust-cache@v2

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: yarn
cache-dependency-path: 'Ecdar-GUI-Web/yarn.lock'

- name: Install yarn dependencies
run: cd Ecdar-GUI-Web && yarn install

- name: Run clippy lint
run: cargo clippy --all-targets -- -D warnings