티스토리 뷰

공부

[github] working-directory in actions

승가비 2023. 9. 7. 23:48
728x90
jobs:
  build:
    steps:
      - uses: actions/checkout@v1
      - name: Install dependencies
        run: pub get
        working-directory: dart_project
      - name: Run tests
        run: pub run test
        working-directory: dart_project
jobs:
  build:
    defaults:
      run:
        working-directory: dart_project
    steps:
      - uses: actions/checkout@v1
      - name: Install dependencies
        run: pub get
      - name: Run tests
        run: pub run test
defaults:
  run:
    working-directory: dart_project
jobs:
  build:
    steps:
      - uses: actions/checkout@v1
      - name: Install dependencies
        run: pub get
      - name: Run tests
        run: pub run test

https://stackoverflow.com/questions/57806624/github-actions-how-to-build-project-in-sub-directory

 

GitHub Actions - How to build project in sub-directory

I'm using GitHub Actions to build my project but my Dart project is in a sub-directory in the repository. The Action script can't find my pubspec.yaml and get the dependencies. How can I point my ...

stackoverflow.com

 

728x90

'공부' 카테고리의 다른 글

[java] list sum  (0) 2023.09.10
[spring] disable class in spring boot @Enable...  (0) 2023.09.07
[macosx] sudo pmset -c disablesleep 0 or 1  (0) 2023.09.07
[sh] ssh -p 10022 root@seunggabi.com  (0) 2023.09.07
[sendmail] load  (0) 2023.08.29
댓글