Skip to content

Add term-prefix setting and filtering #181

Add term-prefix setting and filtering

Add term-prefix setting and filtering #181

Workflow file for this run

name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
- name: Verify code formatting
run: |
go install mvdan.cc/[email protected]
test -z $(gofumpt -l .)
- name: Run linter
if: always()
run: |
go install honnef.co/go/tools/cmd/[email protected]
staticcheck ./...
- name: Run tests with coverage
if: always()
run: go test -cover ./...
smoke-test:
name: Smoke test with Flutter ${{ matrix.flutter_version }}
runs-on: ubuntu-latest
strategy:
matrix:
flutter_version: ['3.3', '3.7', '3.10']
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
- name: Build binary
run: |
go build
mv ./poe2arb /usr/local/bin
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '${{ matrix.flutter_version }}'
- name: Run smoke test
run: |
cd smoke_test
./test.sh
- name: Upload lib/l10n/ artifact
if: always()
uses: actions/upload-artifact@v3
with:
name: smoke-test-l10n-dir
path: |
smoke_test/lib/l10n/
!smoke_test/lib/l10n/.gitignore