chore: Removing ios-alpha from action given it is stable now (#12) #38
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
env: | |
SHOREBIRD_TOKEN: ${{ secrets.SHOREBIRD_TOKEN }} | |
jobs: | |
semantic-pull-request: | |
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/semantic_pull_request.yml@v1 | |
e2e: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: π Git Checkout | |
uses: actions/checkout@v4 | |
- name: π― Set up Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
# TODO(bryanoltman): remove flutter-version specification once we | |
# support 3.19.4. This was added because `flutter create` creates a | |
# flutter project that requires a higher minimum Dart version than | |
# what we support. | |
flutter-version: "3.19.3" | |
channel: stable | |
cache: true | |
- name: β Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: "temurin" | |
java-version: "17" | |
- name: π¦ Setup Shorebird | |
uses: shorebirdtech/setup-shorebird@v1 | |
- name: β¨ Create New Flutter Project | |
run: flutter create e2e_test --empty | |
- name: π¦ Shorebird Init | |
run: shorebird init --force | |
working-directory: e2e_test | |
- name: π¦ Shorebird Release | |
uses: ./ | |
id: shorebird-release | |
with: | |
args: --verbose | |
platform: android | |
working-directory: e2e_test | |
- name: π¦ Assert Release Version (MacOS/Linux) | |
if: runner.os != 'Windows' | |
run: | | |
if [[ ${{ steps.shorebird-release.outputs.release-version }} =~ "0.1.0+1" ]]; then | |
echo 'β Shorebird Release Succeeded!' | |
else | |
echo 'β Shorebird Release Failed.' | |
exit 1 | |
fi | |
- name: π¦ Assert Release Version (Windows) | |
if: runner.os == 'Windows' | |
run: | | |
if ("${{ steps.shorebird-release.outputs.release-version }}" -match "0.1.0\+1") { | |
Write-Output "β Shorebird Release Succeeded!" | |
} else { | |
Write-Output "β Shorebird Release Failed." | |
exit 1 | |
} |