Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: workflows #3

Closed
wants to merge 1 commit into from
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
9 changes: 4 additions & 5 deletions .github/workflows/analyze.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ jobs:
analyze:
runs-on: ubuntu-latest
steps:
- run: echo noop
# - uses: actions/[email protected]
# - uses: dart-lang/setup-dart@v1
# - run: dart pub get
# - run: dart analyze .
- uses: actions/[email protected]
- uses: dart-lang/setup-dart@v1
- run: dart pub get
- run: dart analyze .
9 changes: 4 additions & 5 deletions .github/workflows/format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ jobs:
format:
runs-on: ubuntu-latest
steps:
- run: echo noop
# - uses: actions/[email protected]
# - uses: dart-lang/setup-dart@v1
# - run: dart pub get
# - run: dart format --set-exit-if-changed .
- uses: actions/[email protected]
- uses: dart-lang/setup-dart@v1
- run: dart pub get
- run: dart format --set-exit-if-changed .
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ on:
- 'v[0-9]+.[0-9]+.[0-9]+*'
jobs:
publish:
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
permissions:
id-token: write
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
6 changes: 3 additions & 3 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
- uses: google-github-actions/release-please-action@v4
id: release
with:
token: $
token: ${{ secrets.release_please_token }}
release-type: dart
- name: Enable Pull Request Automerge
if: steps.release.outputs.prs_created && steps.release.outputs.pr != null
run: gh pr merge --merge --auto $
run: gh pr merge --merge --auto ${{ fromJson(steps.release.outputs.pr).number }}
env:
GH_TOKEN: $
GH_TOKEN: ${{ secrets.release_please_token }}
5 changes: 1 addition & 4 deletions .github/workflows/semantic-pull-request.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
name: "Lint PR"

on:
pull_request_target:
types:
- opened
- edited
- synchronize

permissions:
pull-requests: read

jobs:
semantic-pull-request:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: $
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25 changes: 12 additions & 13 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- run: echo noop
# - uses: actions/[email protected]
# - uses: dart-lang/setup-dart@v1
# - run: dart pub get
# - id: check-test-dependency
# run: |
# if grep -q 'test:' pubspec.yaml; then
# echo "test_dependency=true" >> $GITHUB_ENV
# else
# echo "test_dependency=false" >> $GITHUB_ENV
# fi
# - if: env.test_dependency == 'true'
# run: dart test
- uses: actions/[email protected]
- uses: dart-lang/setup-dart@v1
- run: dart pub get
- id: check-test-dependency
run: |
if grep -q 'test:' pubspec.yaml; then
echo "test_dependency=true" >> $GITHUB_ENV
else
echo "test_dependency=false" >> $GITHUB_ENV
fi
- if: env.test_dependency == 'true'
run: dart test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.dart_tool
Loading