Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
- package-ecosystem: "pub" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
27 changes: 0 additions & 27 deletions .github/workflows/check-template.yml

This file was deleted.

49 changes: 49 additions & 0 deletions .github/workflows/flutter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Flutter CI
on:
pull_request:
types:
- opened
- edited
- synchronize

env:
flutter_version: "3.13.0"
jobs:
prIsWip:
name: PR is WIP?
runs-on: ubuntu-latest
timeout-minutes: 2
outputs:
isWip: ${{ steps.prIsWip.outputs.isWip }}
steps:
- id: prIsWip
uses: shiipou/pr-is-wip-action@v1.1.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Setup-Flutter:
needs:
- prIsWip
if: needs.prIsWip.outputs.isWip == 'false'
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- name: Cache Flutter dependencies
uses: actions/cache@v2
with:
path: /opt/hostedtoolcache/flutter
key: ${{ runner.OS }}-flutter-install-cache-${{ env.flutter_version }}
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.flutter_version }}
- name: Restore packages
run: flutter pub get
- name: Analyze
run: flutter analyze --no-congratulate
- name: Run tests
run: flutter test --coverage
# - name: Upload coverage to codecov
# uses: codecov/codecov-action@v2
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
20 changes: 0 additions & 20 deletions .github/workflows/lenra-build.yml

This file was deleted.

56 changes: 56 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Release
on:
push:
branches:
- main
- rc
- beta
- alpha
- "*.x"

env:
flutter_version: "3.13.0"

jobs:
get-next-version:
uses: lenra-io/github-actions/.github/workflows/get-version.yml@main

release:
needs: [get-next-version]
if: ${{ needs.get-next-version.outputs.will-release == 'true' }}
uses: lenra-io/github-actions/.github/workflows/release.yml@main
publish:
name: publish
needs: [get-next-version, release]
if: ${{ needs.get-next-version.outputs.will-release == 'true' }}
runs-on: ubuntu-latest
env:
VERSION: ${{ needs.get-next-version.outputs.version }}
permissions:
id-token: write # Required for authentication using OIDC
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1
- name: Cache Flutter dependencies
uses: actions/cache@v2
with:
path: /opt/hostedtoolcache/flutter
key: ${{ runner.OS }}-flutter-install-cache-${{ env.flutter_version }}
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.flutter_version }}
- name: Install dependencies
run: flutter pub get
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v1'
- name: 'GCloud auth'
run: |
echo '${{ secrets.PUB_DEV_GCLOUD_KEY }}' > .github/key-file.json
gcloud auth activate-service-account --key-file=.github/key-file.json
gcloud auth print-identity-token --audiences=https://pub.dev | dart pub token add https://pub.dev
- name: Set version
uses: mikefarah/yq@master
with:
cmd: yq -i '.version="${{ env.VERSION }}"' pubspec.yaml
- name: Publish
run: flutter pub publish --force
49 changes: 43 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,44 @@

### Node
node_modules/
.npm
.config
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.lenra/
.atom/
.buildlog/
.history
.svn/
migrate_working_dir/

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/

# Flutter/Dart/Pub related
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/
/build/

# Symbolication related
app.*.symbols

# Obfuscation related
app.*.map.json

# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release
10 changes: 10 additions & 0 deletions .metadata
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled and should not be manually edited.

version:
revision: 796c8ef79279f9c774545b3771238c3098dbefab
channel: stable

project_type: package
11 changes: 0 additions & 11 deletions .vscode/tasks.json

This file was deleted.

4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 Lenra
Copyright (c) 2023 Lenra

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
Loading