name: ci
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
tests:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential libasound2-dev libdbus-1-dev pkg-config
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
- run: brew install protobuf
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Build web UI
working-directory: web
run: |
bun install --frozen-lockfile
bun run build
- name: Run web UI tests
working-directory: web
run: bun run test
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v5
- name: Run tests
run: |
fluentci run --wasm rust test