Skip to content

Commit

Permalink
updated workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jerson committed Dec 10, 2020
1 parent 432ecb9 commit fe3839c
Show file tree
Hide file tree
Showing 6 changed files with 95 additions and 4 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/drive.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Flutter drive

on:
pull_request:
push:
tags:
- 'v*'

jobs:
drive:
strategy:
matrix:
device:
- "iPhone 12 mini (14.2)"
fail-fast: false
runs-on: macos-10.15
steps:
- name: "List all simulators"
run: "xcrun instruments -s"
- name: "Start Simulator"
run: |
UDID=$(
xcrun instruments -s |
awk \
-F ' *[][]' \
-v 'device=${{ matrix.device }}' \
'$1 == device { print $2 }'
)
xcrun simctl boot "${UDID:?No Simulator with this name found}"
- uses: actions/checkout@v1
- uses: subosito/flutter-action@v1
with:
channel: 'dev'
- run: "cd example && flutter drive --target=test_driver/app.dart"
27 changes: 27 additions & 0 deletions .github/workflows/example-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build Example Docker images

on:
push:
tags:
- 'v*'

jobs:
web:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
- uses: docker/build-push-action@v2
with:
context: .
file: ./example/Dockerfile
platforms: linux/amd64
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/flutter-openpgp/example-web:latest
2 changes: 0 additions & 2 deletions .github/workflows/pub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ on:

jobs:
publish:

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v1
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release

on:
push:
tags:
- 'v*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: scottbrenner/generate-changelog-action@master
id: Changelog
env:
REPO: ${{ github.repository }}
- uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: |
${{ steps.Changelog.outputs.changelog }}
draft: false
prerelease: false
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.3.2

- Tests CI and github actions for drive

## 1.3.1

- Fixed web messenger
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: fast_rsa
description: library for use RSA with support for android and ios, macOS, linux, windows, web and hover
version: 1.3.1
version: 1.3.2
homepage: https://github.com/jerson/flutter-rsa

environment:
sdk: ">=2.7.0 <3.0.0"
flutter: ">=1.10.0"
flutter: ">=1.10.0 <2.0.0"

dependencies:
flutter:
Expand Down

0 comments on commit fe3839c

Please sign in to comment.