This is an automated email from the ASF dual-hosted git repository.

hsluoyz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/casbin-typeorm-adapter.git


The following commit(s) were added to refs/heads/master by this push:
     new 0ef4a2b  fix: replace disallowed third-party actions with native 
services in CI
0ef4a2b is described below

commit 0ef4a2b4e0d1f731358e7f9bee456978dafb7b85
Author: Yang Luo <[email protected]>
AuthorDate: Mon Jun 22 23:35:03 2026 +0800

    fix: replace disallowed third-party actions with native services in CI
---
 .github/workflows/ci.yml | 45 +++++++++++++++++++++++++++++----------------
 1 file changed, 29 insertions(+), 16 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 7fb0a73..80436ec 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -29,15 +29,22 @@ jobs:
   coverage:
     needs: [lint]
     runs-on: ubuntu-latest
+    services:
+      mysql:
+        image: mysql:8
+        env:
+          MYSQL_ROOT_PASSWORD: password
+          MYSQL_DATABASE: casbin
+        ports:
+          - 3306:3306
+        options: >-
+          --health-cmd="mysqladmin ping"
+          --health-interval=10s
+          --health-timeout=5s
+          --health-retries=10
     steps:
       - uses: actions/checkout@v4
 
-      - name: Setup MySQL
-        uses: mirromutth/[email protected]
-        with:
-          mysql database: casbin
-          mysql root password: password
-
       - name: Set up Node.js
         uses: actions/setup-node@v4
         with:
@@ -50,10 +57,9 @@ jobs:
         run: yarn run coverage
 
       - name: Coveralls
-        uses: coverallsapp/github-action@v2
-        with:
-          github-token: ${{ secrets.GITHUB_TOKEN }}
-          parallel: true
+        run: yarn coveralls < coverage/lcov.info
+        env:
+          COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 
   test:
     needs: [lint]
@@ -61,15 +67,22 @@ jobs:
     strategy:
       matrix:
         node: [^20]
+    services:
+      mysql:
+        image: mysql:8
+        env:
+          MYSQL_ROOT_PASSWORD: password
+          MYSQL_DATABASE: casbin
+        ports:
+          - 3306:3306
+        options: >-
+          --health-cmd="mysqladmin ping"
+          --health-interval=10s
+          --health-timeout=5s
+          --health-retries=10
     steps:
       - uses: actions/checkout@v4
 
-      - name: Setup MySQL
-        uses: mirromutth/[email protected]
-        with:
-          mysql database: casbin
-          mysql root password: password
-
       - name: Set up Node.js
         uses: actions/setup-node@v4
         with:


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to