change to trigger conf test #197
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: Publish Package | |
on: | |
push: | |
branches: | |
- feature_ci/cd | |
schedule: | |
- cron: '0 0 * * 2' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '11' | |
- name: Install Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
- name: Enable KVM group perms | |
run: | | |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules | |
sudo udevadm control --reload-rules | |
sudo udevadm trigger --name-match=kvm | |
- name: Run sample application integration tests | |
uses: reactivecircus/android-emulator-runner@v2 | |
with: | |
api-level: 29 | |
script: | | |
cd example/SampleProject && flutter test integration_test/test_play.dart | |
cd example/SampleProject && flutter test integration_test/test_publish.dart | |
cd example/SampleProject && flutter test integration_test/test_conference.dart | |
# Uncomment and adjust for publishing your package | |
# - name: Setup Pub Credentials | |
# shell: bash | |
# env: | |
# PUB_DEV_PUBLISH_ACCESS_TOKEN: ${{ secrets.PUB_DEV_PUBLISH_ACCESS_TOKEN }} | |
# PUB_DEV_PUBLISH_REFRESH_TOKEN: ${{ secrets.PUB_DEV_PUBLISH_REFRESH_TOKEN }} | |
# PUB_DEV_PUBLISH_TOKEN_ENDPOINT: ${{ secrets.PUB_DEV_PUBLISH_TOKEN_ENDPOINT }} | |
# PUB_DEV_PUBLISH_EXPIRATION: ${{ secrets.PUB_DEV_PUBLISH_EXPIRATION }} | |
# run: | | |
# sh ./pub_login.sh | |
# | |
# - name: Check Publish Warnings | |
# run: | | |
# sudo cat /$HOME/.config/dart/pub-credentials.json | |
# flutter pub publish --dry-run | |
# | |
# - name: Publish Package | |
# run: | | |
# yes | flutter pub publish |