Skip to content

feat(server): add bounce effect #271

feat(server): add bounce effect

feat(server): add bounce effect #271

Workflow file for this run

name: Build
on:
push:
# On main, it's the build and release that will run
branches-ignore: [ "main" ]
jobs:
detect-changes:
runs-on: ubuntu-latest
outputs:
server: ${{ steps.filter.outputs.server }}
app: ${{ steps.filter.outputs.app }}
steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
server:
- 'server/src/**'
- 'server/Cargo.lock'
- 'server/Cargo.toml'
- 'server/Cross.toml'
app:
- 'app/**'
server:
runs-on: ubuntu-latest
needs: detect-changes
if: ${{ needs.detect-changes.outputs.server == 'true' }}
env:
CARGO_TERM_COLOR: always
defaults:
run:
shell: bash
working-directory: ./server
steps:
- uses: rui314/setup-mold@v1
- uses: actions/checkout@v3
- name: 🌱 - Install project dependencies
run: sudo apt-get update; sudo apt-get install -y libudev-dev libsystemd-dev libusb-1.0-0-dev
- name: 🧯 - Check for compile errors
run: cargo check -q
- name: 🧐 - Lint check
run: cargo clippy -- -D warnings
- name: 🔨 - Build
run: cargo build -q
- name: 🧪 - Run tests
run: cargo test -q
app:
runs-on: ubuntu-latest
needs: detect-changes
if: ${{ needs.detect-changes.outputs.app == 'true' }}
defaults:
run:
shell: bash
working-directory: ./app
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: 🌱 - Get dependencies
run: flutter pub get
- name: ⭐ - Verify formatting
run: dart format --output=none --set-exit-if-changed .
- name: 🧐 - Analyze project source
run: dart analyze --fatal-infos
- name: 🧪 - Run tests
run: flutter test
- name: 🔨 - Build
run: flutter build appbundle