Skip to content

Commit

Permalink
publish.yml quality check implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
vmpay committed Sep 16, 2023
1 parent 0ae5f44 commit 1c656e6
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,37 @@ on:

# Publish using the reusable workflow from dart-lang.
jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: dart-lang/setup-dart@v1

- name: Install dependencies
run: dart pub get

- name: Verify formatting
run: dart format -o none --set-exit-if-changed .

- name: Analyze project source
run: dart analyze --fatal-infos

- name: Make shell script write_credentials.sh executable
run: chmod +x .github/workflows/write_credentials.sh

- name: Write down test credentials
run: ./.github/workflows/write_credentials.sh
env:
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}

- name: Run tests
run: dart test

publish:
needs: build
permissions:
id-token: write # Required for authentication using OIDC
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
Expand Down

0 comments on commit 1c656e6

Please sign in to comment.