[ffigen] Change ffigen to use dart-lang/native's directory stucture Also: - Delete dependabot.yml - Rename test-package.yml to ffigen.yml, and modify it to use pkgs/ffigen as its working dir
diff --git a/pkgs/ffigen/.github/workflows/test-package.yml b/.github/workflows/ffigen.yml similarity index 87% rename from pkgs/ffigen/.github/workflows/test-package.yml rename to .github/workflows/ffigen.yml index b809a9a..9bfb291 100644 --- a/pkgs/ffigen/.github/workflows/test-package.yml +++ b/.github/workflows/ffigen.yml
@@ -1,11 +1,17 @@ -name: Dart CI +name: ffigen CI on: # Run on PRs and pushes to the default branch. push: branches: [main, stable] + paths: + - '.github/workflows/ffigen.yml' + - 'pkgs/ffigen/**' pull_request: branches: [main, stable] + paths: + - '.github/workflows/ffigen.yml' + - 'pkgs/ffigen/**' schedule: - cron: "0 0 * * 0" @@ -16,6 +22,9 @@ # Check code formatting and static analysis on a single OS (macos). analyze: runs-on: macos-latest + defaults: + run: + working-directory: pkgs/ffigen/ strategy: fail-fast: false matrix: @@ -41,6 +50,9 @@ test-linux: needs: analyze runs-on: ubuntu-22.04 + defaults: + run: + working-directory: pkgs/ffigen/ steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d @@ -58,6 +70,9 @@ test-mac: needs: analyze runs-on: macos-latest + defaults: + run: + working-directory: pkgs/ffigen/ steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d @@ -75,11 +90,14 @@ uses: coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949 with: github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: lcov.info + path-to-lcov: pkgs/ffigen/lcov.info test-windows: needs: analyze runs-on: windows-latest + defaults: + run: + working-directory: pkgs/ffigen/ steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d @@ -105,6 +123,9 @@ test-windows-flutter: needs: analyze runs-on: windows-latest + defaults: + run: + working-directory: pkgs/ffigen/ steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - uses: subosito/flutter-action@2783a3f08e1baf891508463f8c6653c258246225
diff --git a/pkgs/ffigen/.github/dependabot.yml b/pkgs/ffigen/.github/dependabot.yml deleted file mode 100644 index 725f03a..0000000 --- a/pkgs/ffigen/.github/dependabot.yml +++ /dev/null
@@ -1,11 +0,0 @@ -# Dependabot configuration file. -# See https://docs.github.com/en/code-security/dependabot/dependabot-version-updates -version: 2 - -updates: - - package-ecosystem: github-actions - directory: / - schedule: - interval: monthly - labels: - - autosubmit