invertase/github-action-dart-analyzer

Feature Request: use default workflow working directory

Open

#8 建立於 2022年1月17日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)TypeScript (10 fork)github user discovery
hacktoberfest

倉庫指標

Star
 (174 star)
PR 合併指標
 (PR 指標待抓取)

描述

Hi there! We're looking into using this workflow in our process, but we found that it's necessary to provide the working directory explicitly. I think it would be much more convenient if the working directory was inferred from the GH Action defaults. e.g.:

name: firebase_authentication_client

on:
  push:
    paths:
      - "packages/authentication_client/firebase_authentication_client/**"
      - ".github/workflows/firebase_authentication_client.yaml"

  pull_request:
    paths:
      - "packages/authentication_client/firebase_authentication_client/**"
      - ".github/workflows/firebase_authentication_client.yaml"

jobs:
  build:
    defaults:
      run:
        working-directory: packages/authentication_client/firebase_authentication_client

    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2

...

      - name: Analyze
        uses: invertase/github-action-dart-analyzer@v1
        with:
          fatal-infos: true
          fatal-warnings: true
          annotate: true
          annotate-only: false

In the last step named Analyze the working directory should be the same as defaults.working-directory

貢獻者指南