Skip to content

Commit

Permalink
chore: add testing pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ErickJ3 committed Nov 22, 2024
1 parent b606c74 commit 4bf1b9a
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Test
on:
push:
branches: [develop, main]
pull_request:
branches: [develop, main]

jobs:
test:
strategy:
matrix:
platform: [ubuntu-latest]
redis-version: [7]

runs-on: ${{ matrix.platform }}

services:
redis:
image: redis:${{ matrix.redis-version }}
ports:
- 6379:6379

steps:
- uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: "20"

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false

- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Install Linux dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf \
libsoup-3.0-dev libjavascriptcoregtk-4.1-dev libsoup-3.0-0 webkit2gtk-4.1-dev
- name: Install frontend dependencies
run: pnpm install

- name: Run tests
run: |
cd src-tauri
cargo test

0 comments on commit 4bf1b9a

Please sign in to comment.