Skip to content

Commit

Permalink
feat(continuous_integration.yml): create CI and update CD
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniere-Mathieu committed Dec 19, 2023
1 parent 8211a0e commit 95b3ffa
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 6 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/continuous_integration.yml
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
13 changes: 7 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: 'publish'
name: Publish Pipeline - Side Project
run-name: Publish Pipeline triggered by ${{ github.actor }} on ${{ github.event_name }} event

on:
push:
branches:
- main
- release

jobs:
create-release:
Expand Down Expand Up @@ -44,7 +45,7 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-20.04]
platform: [macos-latest, ubuntu-20.04, windows-latest]

runs-on: ${{ matrix.platform }}
steps:
Expand All @@ -61,9 +62,9 @@ jobs:
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: yarn global add pnpm
run: npm install -g pnpm
- name: install frontend dependencies
run: pnpm install --no-frozen-lockfile # change this to npm or pnpm depending on which one you use
run: pnpm install --no-frozen-lockfile
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
Expand All @@ -90,4 +91,4 @@ jobs:
release_id: process.env.release_id,
draft: false,
prerelease: false
})
})

0 comments on commit 95b3ffa

Please sign in to comment.