Skip to content

fix: de-duplicate test action #236

fix: de-duplicate test action

fix: de-duplicate test action #236

Workflow file for this run

name: Test
on:
push:
branches:
- '*'
pull_request:
workflow_dispatch:
jobs:
test:
strategy:
fail-fast: false
matrix:
include:
- platform: 'macos-latest' # for Arm based macs (M1 and above).
target: 'aarch64-apple-darwin'
args: '--target aarch64-apple-darwin'
- platform: 'macos-latest' # for Intel based macs.
target: 'x86_64-apple-darwin'
args: '--target x86_64-apple-darwin'
- platform: 'ubuntu-24.04'
target: ''
args: ''
- platform: 'windows-latest'
target: ''
args: ''
# Prevent duplicate runs when pushing & pull requests
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
# If it's running and you push again, cancel the old runs
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.platform }}-${{ matrix.target }}
cancel-in-progress: true
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Node.js setup
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
- name: Rust setup
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- name: Install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-24.04'
shell: bash
run: |
sudo apt update;
sudo apt install -y \
build-essential \
libgtk-3-dev \
libssl-dev \
libappindicator3-dev \
librsvg2-dev patchelf;
sudo apt install -y \
libwebkit2gtk-4.1-0=2.44.0-2 \
libwebkit2gtk-4.1-dev=2.44.0-2 \
libjavascriptcoregtk-4.1-0=2.44.0-2 \
libjavascriptcoregtk-4.1-dev=2.44.0-2 \
gir1.2-javascriptcoregtk-4.1=2.44.0-2 \
gir1.2-webkit2-4.1=2.44.0-2;
- name: Install dependencies
run: npm install
- name: Build web
run: npm run build:web
- name: Lint
run: npm run lint
if: matrix.platform == 'ubuntu-24.04'
- name: Build
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}