Skip to content

Commit fa92405

Browse files
authored
[pub] Adjust cicd pipeline (aissat#585)
* [pub] adjust cicd pipeline * add workflow dispatch * cleanup * [pub] fix linting * [pub] remove coveralls
1 parent 3789480 commit fa92405

File tree

2 files changed

+10
-25
lines changed

2 files changed

+10
-25
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
branches: ['*']
1010
tags: ['v*','V*']
1111

12+
workflow_dispatch:
13+
1214
jobs:
1315
test:
1416
name: Test
@@ -20,7 +22,7 @@ jobs:
2022
java-version: '12.x'
2123
- uses: subosito/flutter-action@v1
2224
with:
23-
channel: 'dev' # or: 'dev' or 'beta'
25+
channel: 'stable' # or: 'dev' or 'beta'
2426

2527
- name: Install packages dependencies
2628
run: flutter pub get
@@ -34,11 +36,6 @@ jobs:
3436
- name: Run tests coverage
3537
run: flutter test --coverage
3638

37-
- name: Coveralls GitHub Action
38-
uses: coverallsapp/github-action@1.1.3
39-
with:
40-
github-token: ${{ secrets.GITHUB_TOKEN }}
41-
4239
publish:
4340
if: "(contains(github.event.head_commit.message, '[pub]') &&
4441
contains('
@@ -53,27 +50,17 @@ jobs:
5350
github.ref)"
5451

5552
name: Publish
53+
permissions:
54+
id-token: write # This is required for authentication using OIDC
5655
needs: [test]
5756
runs-on: ubuntu-latest
58-
59-
container:
60-
image: google/dart:latest
57+
timeout-minutes: 15
6158

6259
steps:
63-
- name: Checkout
64-
uses: actions/checkout@v2
65-
66-
- name: Dry run pub publish
67-
run: dart pub publish --dry-run || true
68-
69-
- name: Setup credentials
70-
run: |
71-
pwd
72-
mkdir -p ~/.pub-cache
73-
cat <<EOF> ~/.pub-cache/credentials.json
74-
{"accessToken":"${{ secrets.OAUTH_ACCESS_TOKEN }}","refreshToken":"${{ secrets.OAUTH_REFRESH_TOKEN }}","idToken":"${{ secrets.OAUTH_ID_TOKEN }}","tokenEndpoint":"https://accounts.google.com/o/oauth2/token","scopes":["openid","https://www.googleapis.com/auth/userinfo.email"],"expiration":1609800070574}
75-
EOF
76-
60+
- uses: actions/checkout@v3
61+
- uses: dart-lang/setup-dart@v1
62+
- name: Install dependencies
63+
run: dart pub get
7764
- name: code format
7865
run: dart format lib/*/*.dart lib/*.dart
7966
- name: Publish pkg

packages/easy_logger/analysis_options.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
include: package:flutter_lints/flutter.yaml
33

44
analyzer:
5-
strong-mode:
6-
implicit-casts: false
75
errors:
86
missing_required_param: warning
97
missing_return: warning

0 commit comments

Comments
 (0)