update github workflow files
diff --git a/pkgs/native_synchronization/.github/workflows/dart.yaml b/.github/workflows/native_synchronization.yml
similarity index 73%
rename from pkgs/native_synchronization/.github/workflows/dart.yaml
rename to .github/workflows/native_synchronization.yml
index b22733d..4905106 100644
--- a/pkgs/native_synchronization/.github/workflows/dart.yaml
+++ b/.github/workflows/native_synchronization.yml
@@ -1,20 +1,26 @@
-name: Dart
+name: package:native_synchronization
+permissions: read-all
on:
- schedule:
- # “At 00:00 (UTC) on Sunday.”
- - cron: '0 0 * * 0'
- push:
- branches: [ main ]
pull_request:
branches: [ main ]
-
-# Declare default permissions as read only.
-permissions: read-all
+ paths:
+ - '.github/workflows/native_synchronization.yml'
+ - 'pkgs/native_synchronization/**'
+ push:
+ branches: [ main ]
+ paths:
+ - '.github/workflows/native_synchronization.yml'
+ - 'pkgs/native_synchronization/**'
+ schedule:
+ - cron: '0 0 * * 0' # weekly
jobs:
analyze:
runs-on: ${{ matrix.os }}
+ defaults:
+ run:
+ working-directory: pkgs/native_synchronization
strategy:
matrix:
os: [ubuntu-latest]
@@ -40,6 +46,9 @@
test:
needs: analyze
runs-on: ${{ matrix.os }}
+ defaults:
+ run:
+ working-directory: pkgs/native_synchronization
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
diff --git a/pkgs/native_synchronization/.github/dependabot.yaml b/pkgs/native_synchronization/.github/dependabot.yaml
deleted file mode 100644
index bf6b38a..0000000
--- a/pkgs/native_synchronization/.github/dependabot.yaml
+++ /dev/null
@@ -1,14 +0,0 @@
-# Dependabot configuration file.
-version: 2
-
-updates:
- - package-ecosystem: github-actions
- directory: /
- schedule:
- interval: monthly
- labels:
- - autosubmit
- groups:
- github-actions:
- patterns:
- - "*"
diff --git a/pkgs/native_synchronization/.github/workflows/publish.yaml b/pkgs/native_synchronization/.github/workflows/publish.yaml
deleted file mode 100644
index 1cb7e9c..0000000
--- a/pkgs/native_synchronization/.github/workflows/publish.yaml
+++ /dev/null
@@ -1,17 +0,0 @@
-# A CI configuration to auto-publish pub packages.
-
-name: Publish
-
-on:
- pull_request:
- branches: [ main ]
- push:
- tags: [ 'v[0-9]+.[0-9]+.[0-9]+' ]
-
-jobs:
- publish:
- if: ${{ github.repository_owner == 'dart-lang' }}
- uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main
- permissions:
- id-token: write # Required for authentication using OIDC
- pull-requests: write # Required for writing the pull request note