Skip to content

ci: fix pr preview s3 link #24

ci: fix pr preview s3 link

ci: fix pr preview s3 link #24

Workflow file for this run

on:
pull_request:
push:
branches:
- main
name: test
env:
flutter_version: '3.10.x'
jobs:
build:
name: test
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v3
- name: set up flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.flutter_version }}
channel: 'stable'
cache: true
cache-key: 'flutter-:os:-:channel:-:version:-:arch:-:hash:' # optional, change this to force refresh cache
cache-path: '${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:' # optional, change this to specify the cache path
- name: flutter version
run: flutter --version
- name: flutter pub get
run: flutter pub get
- name: test
run: flutter test --file-reporter=json:test.json
env:
TEST_S3_ENDPOINT: ${{ vars.TEST_S3_ENDPOINT }}
TEST_S3_BUCKET: ${{ secrets.TEST_S3_BUCKET}}
TEST_S3_ACCESS_KEY: ${{ secrets.TEST_S3_ACCESS_KEY}}
TEST_S3_SECRET_KEY: ${{ secrets.TEST_S3_SECRET_KEY}}
- name: publish test results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: |
test.json