Skip to content

Split publish and lint+test github actions #1

Split publish and lint+test github actions

Split publish and lint+test github actions #1

Workflow file for this run

name: Lint + Test
on:
pull_request:
branches: [ master ]
types: [opened, synchronize, reopened, labeled, unlabeled]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
id-token: read # Required for authentication using OIDC

Check failure on line 12 in .github/workflows/lint.yml

View workflow run for this annotation

GitHub Actions / Lint + Test

Invalid workflow file

The workflow is not valid. .github/workflows/lint.yml (Line: 12, Col: 17): Unexpected value 'read'
contents: read
defaults:
run:
working-directory: ./
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Install Dart
uses: dart-lang/setup-dart@v1
with:
sdk: stable
- name: Install Flutter
uses: subosito/flutter-action@v2
- name: Install packages
run: flutter pub get
- name: Linter
run: flutter analyze
- name: Test
run: flutter test
- name: Test example package
run: |
cd example
flutter test