ci: try printing hardcoded env variable #13
Workflow file for this run
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: Main | |
on: push | |
jobs: | |
linting: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Set up Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
flutter-version: 3.19.4 | |
- name: Run analysis | |
run: flutter analyze | |
formatting: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Set up Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
flutter-version: 3.19.4 | |
- name: Check formatting | |
run: dart format --set-exit-if-changed . | |
testing: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Set up Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
flutter-version: 3.19.4 | |
- name: Run tests | |
run: flutter test | |
building-android: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Set up Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
flutter-version: 3.19.4 | |
- name: Generates appbundle | |
run: flutter build appbundle | |
building-ios: | |
runs-on: macos-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Set up Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
flutter-version: 3.19.4 | |
- name: Generates appbundle | |
run: flutter build ios --no-codesign | |
test-env: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Create .env file | |
env: | |
ENV_FILE: ${{ secrets.ENV_FILE }} | |
TEST: hello | |
run: printenv TEST > env.json | |
- run: cat env.json |