Skip to content

Commit

Permalink
Format CI scripts (#430)
Browse files Browse the repository at this point in the history
* Format CI scripts

* Update action dependencies
  • Loading branch information
swift-kim authored Sep 14, 2022
1 parent 21724cf commit 5e404b3
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 45 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ jobs:
dart_analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: stable
- name: Install pub dependencies
Expand All @@ -18,11 +18,12 @@ jobs:
done
- name: Analyze source code
run: dart analyze --fatal-infos packages

format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: stable
- name: Install clang-format
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 2
- uses: subosito/flutter-action@v1
- uses: subosito/flutter-action@v2
with:
channel: stable
- name: Find changed packages
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
-p tizen
- name: Install flutter-tizen
if: ${{ env.HAS_CHANGED_PACKAGES == 'true' }}
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: flutter-tizen/flutter-tizen
path: flutter-tizen
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/integration_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ jobs:
runs-on: [self-hosted, linux]
if: ${{ github.repository_owner == 'flutter-tizen' }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 2
- uses: subosito/flutter-action@v1
- uses: subosito/flutter-action@v2
with:
channel: stable
- name: Install flutter-tizen
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: flutter-tizen/flutter-tizen
path: flutter-tizen
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pull_request_label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v3
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true
- uses: actions/labeler@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
sync-labels: true
62 changes: 31 additions & 31 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,35 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'flutter-tizen' }}
steps:
- uses: subosito/flutter-action@v1
with:
channel: stable
- uses: actions/checkout@v2
with:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Dry run on pull request
if: ${{ github.event_name == 'pull_request' }}
run: |
./tools/tools_runner.sh publish-plugin \
--all-changed \
--pub-publish-flags=--dry-run \
--base-sha=HEAD~
- name: Wait on all tests
if: ${{ github.event_name == 'push' }}
uses: lewagon/[email protected]
with:
ref: ${{ github.sha }}
running-workflow-name: 'release'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 180 # seconds
allowed-conclusions: success
verbose: false
- name: Publish plugins
if: ${{ github.event_name == 'push' }}
run: |
./tools/tools_runner.sh publish-plugin \
--all-changed \
--base-sha=HEAD~ \
--skip-confirmation
env: {PUB_CREDENTIALS: "${{ secrets.PUB_CREDENTIALS }}"}

- uses: subosito/flutter-action@v2
with:
channel: stable
- name: Dry run on pull request
if: ${{ github.event_name == 'pull_request' }}
run: |
./tools/tools_runner.sh publish-plugin \
--all-changed \
--pub-publish-flags=--dry-run \
--base-sha=HEAD~
- name: Wait on all tests
if: ${{ github.event_name == 'push' }}
uses: lewagon/[email protected]
with:
ref: ${{ github.sha }}
running-workflow-name: 'release'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 180 # seconds
allowed-conclusions: success
verbose: false
- name: Publish plugins
if: ${{ github.event_name == 'push' }}
env:
PUB_CREDENTIALS: ${{ secrets.PUB_CREDENTIALS }}
run: |
./tools/tools_runner.sh publish-plugin \
--all-changed \
--base-sha=HEAD~ \
--skip-confirmation

0 comments on commit 5e404b3

Please sign in to comment.