mirror of
https://github.com/inventree/inventree-app.git
synced 2025-04-28 05:26:47 +00:00
Add a dummy .dsn file
This commit is contained in:
parent
c868e36eb9
commit
04344c6c8b
33
.github/workflows/lint.yaml
vendored
33
.github/workflows/lint.yaml
vendored
@ -1,33 +0,0 @@
|
|||||||
# Run flutter linting checks
|
|
||||||
|
|
||||||
name: linting
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
|
|
||||||
lint:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
submodules: recursive
|
|
||||||
- name: Setup Java
|
|
||||||
uses: actions/setup-java@v1
|
|
||||||
with:
|
|
||||||
java-version: '12.x'
|
|
||||||
- name: Setup Flutter
|
|
||||||
uses: subosito/flutter-action@v1
|
|
||||||
with:
|
|
||||||
flutter-version: '2.2.3'
|
|
||||||
- run: flutter pub get
|
|
||||||
- run: flutter analyze
|
|
||||||
|
|
77
.github/workflows/test.yaml
vendored
Normal file
77
.github/workflows/test.yaml
vendored
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
# Run flutter linting checks
|
||||||
|
|
||||||
|
name: test
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
env:
|
||||||
|
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
- name: Setup Java
|
||||||
|
uses: actions/setup-java@v1
|
||||||
|
with:
|
||||||
|
java-version: '12.x'
|
||||||
|
- name: Setup Flutter
|
||||||
|
uses: subosito/flutter-action@v1
|
||||||
|
with:
|
||||||
|
flutter-version: '2.2.3'
|
||||||
|
- run: flutter pub get
|
||||||
|
- run: cp lib/dummy_dsn.dart lib/dsn.dart
|
||||||
|
- run: flutter analyze
|
||||||
|
- run: flutter test --coverage
|
||||||
|
|
||||||
|
android:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
- name: Setup Java
|
||||||
|
uses: actions/setup-java@v1
|
||||||
|
with:
|
||||||
|
java-version: '12.x'
|
||||||
|
- name: Setup Flutter
|
||||||
|
uses: subosito/flutter-action@v1
|
||||||
|
with:
|
||||||
|
flutter-version: '2.2.3'
|
||||||
|
- run: flutter pub get
|
||||||
|
- run: cp lib/dummy_dsn.dart lib/dsn.dart
|
||||||
|
- run: flutter build apk
|
||||||
|
|
||||||
|
ios:
|
||||||
|
runs-on: macos-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
- name: Setup Java
|
||||||
|
uses: actions/setup-java@v1
|
||||||
|
with:
|
||||||
|
java-version: '12.x'
|
||||||
|
- name: Setup Flutter
|
||||||
|
uses: subosito/flutter-action@v1
|
||||||
|
with:
|
||||||
|
flutter-version: '2.2.3'
|
||||||
|
- run: flutter pub get
|
||||||
|
- run: cp lib/dummy_dsn.dart lib/dsn.dart
|
||||||
|
- run: flutter build ios --release --no-codesign
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -9,6 +9,8 @@
|
|||||||
.history
|
.history
|
||||||
.svn/
|
.svn/
|
||||||
|
|
||||||
|
coverage/*
|
||||||
|
|
||||||
# Sentry API key
|
# Sentry API key
|
||||||
lib/dsn.dart
|
lib/dsn.dart
|
||||||
|
|
||||||
|
3
lib/dummy_dsn.dart
Normal file
3
lib/dummy_dsn.dart
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
// Dummy DSN to use for unit testing, etc
|
||||||
|
|
||||||
|
const String SENTRY_DSN_KEY = "https://12345678901234567890@abcdef.ingest.sentry.io/11223344";
|
Loading…
x
Reference in New Issue
Block a user