Skip to content

ci: update webkit2gtk dependency #8

ci: update webkit2gtk dependency

ci: update webkit2gtk dependency #8

Workflow file for this run

name: test
on:
push:
branches:
- "**"
paths-ignore:
- "README.md"
pull_request:
branches:
- "**"
paths-ignore:
- "README.md"
workflow_dispatch:
jobs:
ubuntu:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install Linux Dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: 'stable'
- name: Cache Go modules
uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install Dependencies
run: |
go mod tidy
- name: Install wails
run: |
go install github.com/wailsapp/wails/v2/cmd/wails@latest
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 10
run_install: false
- name: Install Node.js
uses: actions/setup-node@v6
with:
node-version: 20
cache: 'pnpm'
cache-dependency-path: './frontend/pnpm-lock.yaml'
- name: Install frontend dependencies
run: |
cd frontend
pnpm install
- name: Build wails app
run: |
wails build
- name: Run Tests
env:
CGO_ENABLED: 0
run: |
go test -v ./...