mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
feat: experimental workflow for Linux tool-tests-general (#169706)
Demonstrates running Linux tool-tests-general running on workflows. Can be run locally using ACT: `gh act --workflows ".github/workflows/tool-test-general.yml" --secret-file "" --var-file "" --input-file "" --eventpath ""` - except this works only in VSCode since tty isn't attached.
This commit is contained in:
parent
e8706558cd
commit
033b32123f
56
.github/workflows/tool-test-general.yml
vendored
Normal file
56
.github/workflows/tool-test-general.yml
vendored
Normal file
@ -0,0 +1,56 @@
|
||||
name: Tool tests general - experiment
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [master]
|
||||
paths:
|
||||
- 'dev/**'
|
||||
- 'packages/flutter_tools/**'
|
||||
- 'bin/**'
|
||||
- '.ci.yaml'
|
||||
- 'engine/**'
|
||||
- 'DEPS'
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
Linux_tool-tests-general:
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
# The following step is only run LOCALLY - Github runners have everything on them
|
||||
- name: Set up our JDK environment
|
||||
if: ${{ env.ACT }}
|
||||
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00
|
||||
with:
|
||||
java-version: '21'
|
||||
distribution: 'temurin'
|
||||
|
||||
# The following step is only run LOCALLY - Github runners have everything on them
|
||||
- name: Setup Android SDK
|
||||
if: ${{ env.ACT }}
|
||||
uses: amyu/setup-android@v4
|
||||
with:
|
||||
sdk-version: 36
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Path Update
|
||||
run: |
|
||||
echo "$PWD/bin" >> "$GITHUB_PATH"
|
||||
|
||||
- name: Flutter Doctor
|
||||
run: |
|
||||
flutter doctor
|
||||
|
||||
- name: Get packages
|
||||
run: |
|
||||
flutter update-packages
|
||||
|
||||
- name: Tool Test
|
||||
run: |
|
||||
SHARD=tool_tests SUBSHARD=general dart --enable-asserts dev/bots/test.dart
|
Loading…
Reference in New Issue
Block a user