34 lines
686 B
YAML
34 lines
686 B
YAML
name: "Test"
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: apt-get install dependencies
|
|
run: |
|
|
apt-get update
|
|
apt-get install -y git jq
|
|
|
|
|
|
- run: git config --global --add safe.directory '*'
|
|
|
|
- run: git clone --depth=1 --single-branch --branch=master https://github.com/KanjiVG/kanjivg.git kanjivg
|
|
|
|
- name: Setup Flutter
|
|
uses: subosito/flutter-action@v2
|
|
with:
|
|
channel: 'stable'
|
|
|
|
- run: flutter pub get
|
|
|
|
- run: flutter test
|
|
env:
|
|
KANJIVG_PATH: ${{ github.workspace }}/kanjivg
|