-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(continuous_integration.yml): create CI and update CD
- Loading branch information
1 parent
8211a0e
commit 95b3ffa
Showing
2 changed files
with
48 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: CI Pipeline - Side Project | ||
run-name: CI Pipeline triggered by ${{ github.actor }} on ${{ github.event_name }} event | ||
on: | ||
push: | ||
branches-ignore: | ||
- "main" | ||
- "release" | ||
|
||
jobs: | ||
RunTests: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "16.x" | ||
|
||
- name: install Rust stable | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: install dependencies (ubuntu only) | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf | ||
- name: install Pnpm | ||
run: npm install -g pnpm | ||
- name: install frontend dependencies | ||
run: pnpm install --no-frozen-lockfile | ||
|
||
- name: Run Unit tests and Integration tests | ||
run: npm run test | ||
|
||
- name: Checker linter | ||
run: npm run lint | ||
|
||
- name: Change working directory | ||
run: cd src-tauri | ||
|
||
- name: Run Rust tests | ||
run: cargo test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters