Skip to content

Commit

Permalink
Merge branch 'main' into chore/add-lint-rule-public_member_api_docs
Browse files Browse the repository at this point in the history
  • Loading branch information
axi92 authored Sep 20, 2024
2 parents a3979bc + 02de2e3 commit 35915fd
Show file tree
Hide file tree
Showing 13 changed files with 5,601 additions and 5,502 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'
java-version: "17"
distribution: "temurin"
cache: "gradle"
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Cache Android SDK
Expand All @@ -35,7 +35,7 @@ jobs:
uses: ./.github/actions/flutter-setup
- uses: SwiftyLab/setup-swift@latest
with:
swift-version: '5.10.0'
swift-version: "5.10.0"
- name: Get Swift Version
run: swift --version
- name: Get Xcode version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ on:
jobs:
cache_cleanup:
name: Clean up cache
uses: evva-sfw/.github/workflows/cache.yml@main
uses: evva-sfw/workflows/workflows/cache.yml@main
33 changes: 33 additions & 0 deletions .github/workflows/pub.dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish to pub.dev

on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+*" # Tag must be the trigger, defined on pub.dev in the package settings
# https://dart.dev/tools/pub/automated-publishing#hardening-security-with-tag-protection-rules-on-github
jobs:
publish:
runs-on: ubuntu-latest
environment: pub.dev # is configured in repo settings with secrets
permissions:
id-token: write # Required for authentication using OIDC
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ssh-key: ${{ secrets.BOT_SSH_PRIVATE_KEY }}

- name: Setup Flutter SDK
uses: flutter-actions/setup-flutter@v3
with:
channel: stable
version: latest
cache: true
cache-sdk: true
cache-key: flutter-cache

- run: flutter pub get

- uses: flutter-actions/setup-pubdev-credentials@v1

- run: flutter pub publish --force
31 changes: 23 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,21 @@ jobs:
with:
node-version: lts/*

- name: Setup Flutter SDK
uses: flutter-actions/setup-flutter@v3
with:
channel: stable
version: latest
cache: true
cache-sdk: true
cache-key: flutter-cache

- name: Update Flutter SDK
run: flutter upgrade

- name: Install dependencies
run: flutter pub get

- name: Cache node_modules
id: node-modules
uses: actions/cache@v4
Expand All @@ -61,23 +76,23 @@ jobs:
echo "name: ${{ steps.import-gpg.outputs.name }}"
echo "email: ${{ steps.import-gpg.outputs.email }}"
- name: Install dependencies
run: npm i

- uses: flutter-actions/setup-pubdev-credentials@v1

- name: git config
run: |
git config user.name "${{ steps.import-gpg.outputs.name }}"
git config user.email "${{ steps.import-gpg.outputs.email }}"
- name: Setup Flutter
uses: ./.github/actions/flutter-setup

- name: Install dependencies
run: npm i
git config --list
- name: Run release-it
run: npx release-it ${{ github.event.inputs.input_version }} --ci
run: npx release-it ${{ github.event.inputs.input_version }} --ci -V
env:
BOT_GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}

- name: Attest
uses: actions/attest-build-provenance@v1
with:
subject-path: '${{ github.workspace }}/*.tgz'
subject-path: "${{ github.workspace }}/*.tgz"
2 changes: 1 addition & 1 deletion .github/workflows/semantic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ permissions:
jobs:
semantic_pr-name:
name: semantic_pr-name
uses: evva-sfw/.github/semantic.yml@main
uses: evva-sfw/workflows/workflows/semantic.yml@main
14 changes: 7 additions & 7 deletions .github/workflows/test-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: test-report
on:
workflow_run:
workflows: ['test']
workflows: ["test"]
types:
- completed
permissions:
Expand All @@ -13,9 +13,9 @@ jobs:
test-report_dart:
runs-on: ubuntu-latest
steps:
- uses: dorny/test-reporter@v1
with:
artifact: test-results.json # artifact name
name: Dart Tests # Name of the check run which will be created
path: './test-results.json' # Path to test results (inside artifact .zip)
reporter: dart-json # Format of test results
- uses: dorny/test-reporter@v1
with:
artifact: test-results.json # artifact name
name: Dart Tests # Name of the check run which will be created
path: "./test-results.json" # Path to test results (inside artifact .zip)
reporter: dart-json # Format of test results
11 changes: 5 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ jobs:
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'
java-version: "17"
distribution: "temurin"
cache: "gradle"
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Cache Android SDK
Expand All @@ -42,7 +42,7 @@ jobs:
- run: example/android/gradlew
- name: Run Tests
run: make test-android

test_ios:
runs-on: macos-latest
steps:
Expand All @@ -51,7 +51,7 @@ jobs:
uses: ./.github/actions/flutter-setup
- uses: SwiftyLab/setup-swift@latest
with:
swift-version: '5.10.0'
swift-version: "5.10.0"
- name: Get Swift Version
run: swift --version
- name: Get Xcode version
Expand All @@ -73,4 +73,3 @@ jobs:
env:
DEVELOPER_DIR: /Applications/Xcode_15.4.app
run: make test-ios

6 changes: 3 additions & 3 deletions .release-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"flutter pub get",
"npx auto-changelog -v ${version} -c .auto-changelog",
"flutter pub publish --to-archive abrevva_${version}.tgz"
],
"before:github:release": "flutter pub publish --force"
]
},
"npm": {
"skipChecks": true,
Expand All @@ -17,13 +16,14 @@
"git": {
"commitMessage": "chore: release ${version}",
"tagName": "${version}",
"tag": true,
"commitArgs": [
"-S"
],
"tagArgs": [
"-s"
],
"push": false
"push": true
},
"github": {
"release": true,
Expand Down
50 changes: 50 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,55 @@


## [0.0.5](https://github.com/evva-sfw/abrevva-flutter/compare/0.0.4...0.0.5) (2024-09-20)


### 🚀 Continuous Integration

* add checkout step to pub.dev workflow ([#30](https://github.com/evva-sfw/abrevva-flutter/issues/30)) ([9ca8261](https://github.com/evva-sfw/abrevva-flutter/commit/9ca82614a657fccba066f4545f592505fb83c2c3))

### Changelog

All notable changes to this project will be documented in this file. Dates are displayed in UTC.

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [0.0.5](https://github.com/evva-sfw/abrevva-flutter/compare/0.0.4...0.0.5)

- ci: add checkout step to pub.dev workflow [`#30`](https://github.com/evva-sfw/abrevva-flutter/pull/30)

#### [0.0.4](https://github.com/evva-sfw/abrevva-flutter/compare/0.0.3...0.0.4)

> 20 September 2024
- ci: use flutter toolchain instead of dart [`#29`](https://github.com/evva-sfw/abrevva-flutter/pull/29)

#### [0.0.3](https://github.com/evva-sfw/abrevva-flutter/compare/0.0.2...0.0.3)

> 20 September 2024
- ci: move pub.dev workflow to workflow folder [`#28`](https://github.com/evva-sfw/abrevva-flutter/pull/28)

#### 0.0.2

> 20 September 2024
- ci: separate release-it and pub.dev publish to comply with dev.pub settings [`#27`](https://github.com/evva-sfw/abrevva-flutter/pull/27)
- ci: checkout git tag for flutter to be able to publish [`#26`](https://github.com/evva-sfw/abrevva-flutter/pull/26)
- ci: add pubdev credentials setup to release workflow [`#25`](https://github.com/evva-sfw/abrevva-flutter/pull/25)
- ci: increase verbose on release-it [`#24`](https://github.com/evva-sfw/abrevva-flutter/pull/24)
- ci: test if workflow breaks because of custom action [`#22`](https://github.com/evva-sfw/abrevva-flutter/pull/22)
- ci: fix flutter setup in release workflow [`#20`](https://github.com/evva-sfw/abrevva-flutter/pull/20)
- ci: rearrange release steps to fix missing git config author [`#19`](https://github.com/evva-sfw/abrevva-flutter/pull/19)
- ci: add name to package.json [`#18`](https://github.com/evva-sfw/abrevva-flutter/pull/18)
- fix: corrected path for semantic workflow [`#17`](https://github.com/evva-sfw/abrevva-flutter/pull/17)
- build(deps): bump flutter_lints from 2.0.3 to 4.0.0 [`#5`](https://github.com/evva-sfw/abrevva-flutter/pull/5)
- ci: sync npm package jsons [`#16`](https://github.com/evva-sfw/abrevva-flutter/pull/16)
- ci: fix flutter setup for release pipeline [`#15`](https://github.com/evva-sfw/abrevva-flutter/pull/15)
- fix: changed cache worklow path [`#13`](https://github.com/evva-sfw/abrevva-flutter/pull/13)
- ci: fix install cmd for dart deps [`#14`](https://github.com/evva-sfw/abrevva-flutter/pull/14)
- ci(workflow): added cleanup cache workflow & switched to global workflows [`#12`](https://github.com/evva-sfw/abrevva-flutter/pull/12)
- ci: release-it workflow setup [`#6`](https://github.com/evva-sfw/abrevva-flutter/pull/6)
- ci(test): fixed typo in Test Workflow; renamed all workflow and jobnames [`#10`](https://github.com/evva-sfw/abrevva-flutter/pull/10)
- ci: create artifact for test results [`#9`](https://github.com/evva-sfw/abrevva-flutter/pull/9)
- feat: git workflows [`#4`](https://github.com/evva-sfw/abrevva-flutter/pull/4)
- ci: add semantic pr title check [`#1`](https://github.com/evva-sfw/abrevva-flutter/pull/1)
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.0.1"
version: "0.0.5"
analyzer:
dependency: transitive
description:
Expand Down
Loading

0 comments on commit 35915fd

Please sign in to comment.