Skip to content
Merged
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
14 changes: 7 additions & 7 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,33 @@ updates:
directory: /
schedule:
interval: monthly
time: '08:00'
time: "08:00"
timezone: Asia/Tokyo
cooldown:
default-days: 3
semver-major-days: 7
ignore:
- dependency-name: '@types/node'
- dependency-name: "@types/node"
update-types:
- 'version-update:semver-major'
- "version-update:semver-major"
groups:
actions-packages:
patterns:
- '@actions/*'
- "@actions/*"
dev-dependencies:
dependency-type: development
exclude-patterns:
- '@biomejs/biome'
- "@biomejs/biome"

- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
time: '08:00'
time: "08:00"
timezone: Asia/Tokyo
cooldown:
default-days: 3
groups:
github-actions-official:
patterns:
- 'actions/*'
- "actions/*"
2 changes: 1 addition & 1 deletion .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
id: metadata
uses: dependabot/fetch-metadata@25dd0e34f4fe68f24cc83900b1fe3fe149efef98 # v3.1.0
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
github-token: "${{ secrets.GITHUB_TOKEN }}"

- name: Auto-merge patch and minor updates
if: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- name: Setup Flutter (exact version)
uses: ./
with:
flutter-version: '3.29.0'
flutter-version: "3.29.0"
channel: stable

- run: flutter --version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
inputs:
version:
description: 'Release version (e.g. v1.2.3)'
description: "Release version (e.g. v1.2.3)"
required: true
type: string

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Zero configuration installs the latest stable Flutter SDK with caching enabled.
```yaml
- uses: koji-1009/setup-flutter@9a42a50501f6af795c1a42e2c3c371f40e8c54b2 # v1.4.0
with:
flutter-version: '3.41.0'
flutter-version: "3.41.0"
```

Supports exact versions, ranges (`3.x`, `3.41.x`), and constraints (`>=3.41.0 <4.0.0`).
Expand Down Expand Up @@ -139,7 +139,7 @@ Resolve version without installing. Useful for checking available versions in CI
- uses: koji-1009/setup-flutter@9a42a50501f6af795c1a42e2c3c371f40e8c54b2 # v1.4.0
id: flutter
with:
flutter-version: '3.x'
flutter-version: "3.x"
dry-run: true
- run: echo "${{ steps.flutter.outputs.flutter-version }}"
```
Expand All @@ -159,7 +159,7 @@ Install from a git repository instead of release archives:
- uses: koji-1009/setup-flutter@9a42a50501f6af795c1a42e2c3c371f40e8c54b2 # v1.4.0
with:
git-source: git
flutter-version: '3.x'
flutter-version: "3.x"

# Custom fork
- uses: koji-1009/setup-flutter@9a42a50501f6af795c1a42e2c3c371f40e8c54b2 # v1.4.0
Expand Down
70 changes: 35 additions & 35 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,72 +1,72 @@
name: 'Setup Flutter'
description: 'Set up Flutter SDK for GitHub Actions'
author: 'koji-1009'
name: "Setup Flutter"
description: "Set up Flutter SDK for GitHub Actions"
author: "koji-1009"

inputs:
flutter-version:
description: 'Flutter SDK version (e.g. 3.29.0, 3.x, >=3.29.0 <4.0.0)'
description: "Flutter SDK version (e.g. 3.29.0, 3.x, >=3.29.0 <4.0.0)"
required: false
default: ''
default: ""
flutter-version-file:
description: 'Path to pubspec.yaml, pubspec.yml, or .fvmrc'
description: "Path to pubspec.yaml, pubspec.yml, or .fvmrc"
required: false
default: ''
default: ""
channel:
description: 'Release channel: stable, beta, or master'
description: "Release channel: stable, beta, or master"
required: false
default: 'stable'
default: "stable"
architecture:
description: 'CPU architecture: x64 or arm64 (auto-detected if omitted)'
description: "CPU architecture: x64 or arm64 (auto-detected if omitted)"
required: false
fvm-flavor:
description: 'FVM flavor name'
description: "FVM flavor name"
required: false
default: ''
default: ""
cache-sdk:
description: 'Cache Flutter SDK'
description: "Cache Flutter SDK"
required: false
default: 'true'
default: "true"
cache-pub:
description: 'Cache pub dependencies (requires pubspec.lock)'
description: "Cache pub dependencies (requires pubspec.lock)"
required: false
default: 'true'
default: "true"
git-source:
description: 'Install method: release or git'
description: "Install method: release or git"
required: false
default: 'release'
default: "release"
git-source-url:
description: 'Git repository URL'
description: "Git repository URL"
required: false
default: 'https://github.com/flutter/flutter.git'
default: "https://github.com/flutter/flutter.git"
dry-run:
description: 'Only resolve version, do not install'
description: "Only resolve version, do not install"
required: false
default: 'false'
default: "false"
problem-matcher:
description: 'Register a problem matcher for flutter analyze and dart analyze'
description: "Register a problem matcher for flutter analyze and dart analyze"
required: false
default: 'true'
default: "true"

outputs:
flutter-version:
description: 'Installed Flutter version'
description: "Installed Flutter version"
dart-version:
description: 'Included Dart SDK version'
description: "Included Dart SDK version"
channel:
description: 'Resolved channel'
description: "Resolved channel"
cache-sdk-hit:
description: 'Whether SDK cache was restored'
description: "Whether SDK cache was restored"
cache-pub-hit:
description: 'Whether pub cache was restored'
description: "Whether pub cache was restored"
architecture:
description: 'Resolved CPU architecture'
description: "Resolved CPU architecture"

branding:
icon: 'download-cloud'
color: 'green'
icon: "download-cloud"
color: "green"

runs:
using: 'node24'
main: 'dist/setup/index.js'
post: 'dist/post/index.js'
using: "node24"
main: "dist/setup/index.js"
post: "dist/post/index.js"
post-if: always()
5 changes: 0 additions & 5 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@
"quoteStyle": "double"
}
},
"yaml": {
"formatter": {
"quoteStyle": "single"
}
},
"assist": {
"enabled": true,
"actions": {
Expand Down
4 changes: 2 additions & 2 deletions build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import { readFileSync } from "node:fs";
import { build } from "esbuild";

const actionYml = readFileSync("action.yml", "utf8");
const match = actionYml.match(/using:\s*'node(\d+)'/);
const match = actionYml.match(/using:\s*(['"])node(\d+)\1/);
if (!match) {
throw new Error("Could not find node version in action.yml");
}
const target = `node${match[1]}`;
const target = `node${match[2]}`;

const shared = {
bundle: true,
Expand Down
Loading