Skip to content

Commit

Permalink
feat: update release CI to fix error (#1421)
Browse files Browse the repository at this point in the history
  • Loading branch information
MuZhou233 authored Jul 18, 2024
1 parent 4e8b1f1 commit c52a9b5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,14 @@ jobs:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20

- name: Run semantic-release
if: github.repository == 'casbin/casbin' && github.event_name == 'push'
Expand Down
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,4 @@ lint:
golangci-lint run --verbose

release:
yarn global add semantic-release@17.2.4
semantic-release

npx semantic-release@v19.0.2

1 comment on commit c52a9b5

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: c52a9b5 Previous: 4e8b1f1 Ratio
BenchmarkCachedRaw 17.68 ns/op 0 B/op 0 allocs/op 17.63 ns/op 0 B/op 0 allocs/op 1.00
BenchmarkCachedRaw - ns/op 17.68 ns/op 17.63 ns/op 1.00
BenchmarkCachedRaw - B/op 0 B/op 0 B/op 1
BenchmarkCachedRaw - allocs/op 0 allocs/op 0 allocs/op 1
BenchmarkCachedBasicModel 187.9 ns/op 104 B/op 4 allocs/op 186.1 ns/op 104 B/op 4 allocs/op 1.01
BenchmarkCachedBasicModel - ns/op 187.9 ns/op 186.1 ns/op 1.01
BenchmarkCachedBasicModel - B/op 104 B/op 104 B/op 1
BenchmarkCachedBasicModel - allocs/op 4 allocs/op 4 allocs/op 1
BenchmarkCachedRBACModel 184.6 ns/op 104 B/op 4 allocs/op 181.7 ns/op 104 B/op 4 allocs/op 1.02
BenchmarkCachedRBACModel - ns/op 184.6 ns/op 181.7 ns/op 1.02
BenchmarkCachedRBACModel - B/op 104 B/op 104 B/op 1
BenchmarkCachedRBACModel - allocs/op 4 allocs/op 4 allocs/op 1
BenchmarkCachedRBACModelSmall 196 ns/op 104 B/op 4 allocs/op 195.8 ns/op 104 B/op 4 allocs/op 1.00
BenchmarkCachedRBACModelSmall - ns/op 196 ns/op 195.8 ns/op 1.00
BenchmarkCachedRBACModelSmall - B/op 104 B/op 104 B/op 1
BenchmarkCachedRBACModelSmall - allocs/op 4 allocs/op 4 allocs/op 1
BenchmarkCachedRBACModelMedium 211.6 ns/op 104 B/op 4 allocs/op 204.8 ns/op 104 B/op 4 allocs/op 1.03
BenchmarkCachedRBACModelMedium - ns/op 211.6 ns/op 204.8 ns/op 1.03
BenchmarkCachedRBACModelMedium - B/op 104 B/op 104 B/op 1
BenchmarkCachedRBACModelMedium - allocs/op 4 allocs/op 4 allocs/op 1
BenchmarkCachedRBACModelLarge 172.7 ns/op 96 B/op 3 allocs/op 171.3 ns/op 96 B/op 3 allocs/op 1.01
BenchmarkCachedRBACModelLarge - ns/op 172.7 ns/op 171.3 ns/op 1.01
BenchmarkCachedRBACModelLarge - B/op 96 B/op 96 B/op 1
BenchmarkCachedRBACModelLarge - allocs/op 3 allocs/op 3 allocs/op 1
BenchmarkCachedRBACModelWithResourceRoles 192.8 ns/op 104 B/op 4 allocs/op 190.6 ns/op 104 B/op 4 allocs/op 1.01
BenchmarkCachedRBACModelWithResourceRoles - ns/op 192.8 ns/op 190.6 ns/op 1.01
BenchmarkCachedRBACModelWithResourceRoles - B/op 104 B/op 104 B/op 1
BenchmarkCachedRBACModelWithResourceRoles - allocs/op 4 allocs/op 4 allocs/op 1
BenchmarkCachedRBACModelWithDomains 201.8 ns/op 120 B/op 4 allocs/op 198.3 ns/op 120 B/op 4 allocs/op 1.02
BenchmarkCachedRBACModelWithDomains - ns/op 201.8 ns/op 198.3 ns/op 1.02
BenchmarkCachedRBACModelWithDomains - B/op 120 B/op 120 B/op 1
BenchmarkCachedRBACModelWithDomains - allocs/op 4 allocs/op 4 allocs/op 1
BenchmarkCachedABACModel 2899 ns/op 1544 B/op 18 allocs/op 2806 ns/op 1543 B/op 18 allocs/op 1.03
BenchmarkCachedABACModel - ns/op 2899 ns/op 2806 ns/op 1.03
BenchmarkCachedABACModel - B/op 1544 B/op 1543 B/op 1.00
BenchmarkCachedABACModel - allocs/op 18 allocs/op 18 allocs/op 1
BenchmarkCachedKeyMatchModel 202.4 ns/op 152 B/op 4 allocs/op 199.9 ns/op 152 B/op 4 allocs/op 1.01
BenchmarkCachedKeyMatchModel - ns/op 202.4 ns/op 199.9 ns/op 1.01
BenchmarkCachedKeyMatchModel - B/op 152 B/op 152 B/op 1
BenchmarkCachedKeyMatchModel - allocs/op 4 allocs/op 4 allocs/op 1
BenchmarkCachedRBACModelWithDeny 185 ns/op 104 B/op 4 allocs/op 183.5 ns/op 104 B/op 4 allocs/op 1.01
BenchmarkCachedRBACModelWithDeny - ns/op 185 ns/op 183.5 ns/op 1.01
BenchmarkCachedRBACModelWithDeny - B/op 104 B/op 104 B/op 1
BenchmarkCachedRBACModelWithDeny - allocs/op 4 allocs/op 4 allocs/op 1
BenchmarkCachedPriorityModel 185.4 ns/op 104 B/op 4 allocs/op 185 ns/op 104 B/op 4 allocs/op 1.00
BenchmarkCachedPriorityModel - ns/op 185.4 ns/op 185 ns/op 1.00
BenchmarkCachedPriorityModel - B/op 104 B/op 104 B/op 1
BenchmarkCachedPriorityModel - allocs/op 4 allocs/op 4 allocs/op 1
BenchmarkCachedWithEnforceContext 304.9 ns/op 240 B/op 5 allocs/op 301.7 ns/op 240 B/op 5 allocs/op 1.01
BenchmarkCachedWithEnforceContext - ns/op 304.9 ns/op 301.7 ns/op 1.01
BenchmarkCachedWithEnforceContext - B/op 240 B/op 240 B/op 1
BenchmarkCachedWithEnforceContext - allocs/op 5 allocs/op 5 allocs/op 1
BenchmarkCachedRBACModelMediumParallel 171.1 ns/op 105 B/op 4 allocs/op 171.2 ns/op 105 B/op 4 allocs/op 1.00
BenchmarkCachedRBACModelMediumParallel - ns/op 171.1 ns/op 171.2 ns/op 1.00
BenchmarkCachedRBACModelMediumParallel - B/op 105 B/op 105 B/op 1
BenchmarkCachedRBACModelMediumParallel - allocs/op 4 allocs/op 4 allocs/op 1
BenchmarkHasPolicySmall 519.2 ns/op 150 B/op 6 allocs/op 535.4 ns/op 150 B/op 6 allocs/op 0.97
BenchmarkHasPolicySmall - ns/op 519.2 ns/op 535.4 ns/op 0.97
BenchmarkHasPolicySmall - B/op 150 B/op 150 B/op 1
BenchmarkHasPolicySmall - allocs/op 6 allocs/op 6 allocs/op 1
BenchmarkHasPolicyMedium 601 ns/op 157 B/op 6 allocs/op 563.8 ns/op 157 B/op 6 allocs/op 1.07
BenchmarkHasPolicyMedium - ns/op 601 ns/op 563.8 ns/op 1.07
BenchmarkHasPolicyMedium - B/op 157 B/op 157 B/op 1
BenchmarkHasPolicyMedium - allocs/op 6 allocs/op 6 allocs/op 1
BenchmarkHasPolicyLarge 617.2 ns/op 165 B/op 7 allocs/op 601.9 ns/op 165 B/op 7 allocs/op 1.03
BenchmarkHasPolicyLarge - ns/op 617.2 ns/op 601.9 ns/op 1.03
BenchmarkHasPolicyLarge - B/op 165 B/op 165 B/op 1
BenchmarkHasPolicyLarge - allocs/op 7 allocs/op 7 allocs/op 1
BenchmarkAddPolicySmall 533.8 ns/op 152 B/op 6 allocs/op 567.6 ns/op 152 B/op 6 allocs/op 0.94
BenchmarkAddPolicySmall - ns/op 533.8 ns/op 567.6 ns/op 0.94
BenchmarkAddPolicySmall - B/op 152 B/op 152 B/op 1
BenchmarkAddPolicySmall - allocs/op 6 allocs/op 6 allocs/op 1
BenchmarkAddPolicyMedium 601.1 ns/op 169 B/op 7 allocs/op 604.2 ns/op 168 B/op 7 allocs/op 0.99
BenchmarkAddPolicyMedium - ns/op 601.1 ns/op 604.2 ns/op 0.99
BenchmarkAddPolicyMedium - B/op 169 B/op 168 B/op 1.01
BenchmarkAddPolicyMedium - allocs/op 7 allocs/op 7 allocs/op 1
BenchmarkAddPolicyLarge 1296 ns/op 466 B/op 9 allocs/op 1274 ns/op 466 B/op 9 allocs/op 1.02
BenchmarkAddPolicyLarge - ns/op 1296 ns/op 1274 ns/op 1.02
BenchmarkAddPolicyLarge - B/op 466 B/op 466 B/op 1
BenchmarkAddPolicyLarge - allocs/op 9 allocs/op 9 allocs/op 1
BenchmarkRemovePolicySmall 547.8 ns/op 166 B/op 7 allocs/op 511.6 ns/op 166 B/op 7 allocs/op 1.07
BenchmarkRemovePolicySmall - ns/op 547.8 ns/op 511.6 ns/op 1.07
BenchmarkRemovePolicySmall - B/op 166 B/op 166 B/op 1
BenchmarkRemovePolicySmall - allocs/op 7 allocs/op 7 allocs/op 1
BenchmarkRemovePolicyMedium 587.8 ns/op 175 B/op 7 allocs/op 590 ns/op 175 B/op 7 allocs/op 1.00
BenchmarkRemovePolicyMedium - ns/op 587.8 ns/op 590 ns/op 1.00
BenchmarkRemovePolicyMedium - B/op 175 B/op 175 B/op 1
BenchmarkRemovePolicyMedium - allocs/op 7 allocs/op 7 allocs/op 1
BenchmarkRemovePolicyLarge 1197 ns/op 279 B/op 12 allocs/op 1281 ns/op 280 B/op 12 allocs/op 0.93
BenchmarkRemovePolicyLarge - ns/op 1197 ns/op 1281 ns/op 0.93
BenchmarkRemovePolicyLarge - B/op 279 B/op 280 B/op 1.00
BenchmarkRemovePolicyLarge - allocs/op 12 allocs/op 12 allocs/op 1
BenchmarkRaw 17.74 ns/op 0 B/op 0 allocs/op 17.65 ns/op 0 B/op 0 allocs/op 1.01
BenchmarkRaw - ns/op 17.74 ns/op 17.65 ns/op 1.01
BenchmarkRaw - B/op 0 B/op 0 B/op 1
BenchmarkRaw - allocs/op 0 allocs/op 0 allocs/op 1
BenchmarkBasicModel 3630 ns/op 1510 B/op 17 allocs/op 3555 ns/op 1509 B/op 17 allocs/op 1.02
BenchmarkBasicModel - ns/op 3630 ns/op 3555 ns/op 1.02
BenchmarkBasicModel - B/op 1510 B/op 1509 B/op 1.00
BenchmarkBasicModel - allocs/op 17 allocs/op 17 allocs/op 1
BenchmarkRBACModel 5480 ns/op 2068 B/op 35 allocs/op 5398 ns/op 2064 B/op 35 allocs/op 1.02
BenchmarkRBACModel - ns/op 5480 ns/op 5398 ns/op 1.02
BenchmarkRBACModel - B/op 2068 B/op 2064 B/op 1.00
BenchmarkRBACModel - allocs/op 35 allocs/op 35 allocs/op 1
BenchmarkRBACModelSizes/small 49370 ns/op 20266 B/op 480 allocs/op 50228 ns/op 20307 B/op 480 allocs/op 0.98
BenchmarkRBACModelSizes/small - ns/op 49370 ns/op 50228 ns/op 0.98
BenchmarkRBACModelSizes/small - B/op 20266 B/op 20307 B/op 1.00
BenchmarkRBACModelSizes/small - allocs/op 480 allocs/op 480 allocs/op 1
BenchmarkRBACModelSizes/medium 504856 ns/op 191750 B/op 4829 allocs/op 516515 ns/op 191740 B/op 4828 allocs/op 0.98
BenchmarkRBACModelSizes/medium - ns/op 504856 ns/op 516515 ns/op 0.98
BenchmarkRBACModelSizes/medium - B/op 191750 B/op 191740 B/op 1.00
BenchmarkRBACModelSizes/medium - allocs/op 4829 allocs/op 4828 allocs/op 1.00
BenchmarkRBACModelSizes/large 5464596 ns/op 1898876 B/op 48145 allocs/op 5356627 ns/op 1900823 B/op 48199 allocs/op 1.02
BenchmarkRBACModelSizes/large - ns/op 5464596 ns/op 5356627 ns/op 1.02
BenchmarkRBACModelSizes/large - B/op 1898876 B/op 1900823 B/op 1.00
BenchmarkRBACModelSizes/large - allocs/op 48145 allocs/op 48199 allocs/op 1.00
BenchmarkRBACModelSmall 59589 ns/op 20372 B/op 615 allocs/op 60670 ns/op 20371 B/op 615 allocs/op 0.98
BenchmarkRBACModelSmall - ns/op 59589 ns/op 60670 ns/op 0.98
BenchmarkRBACModelSmall - B/op 20372 B/op 20371 B/op 1.00
BenchmarkRBACModelSmall - allocs/op 615 allocs/op 615 allocs/op 1
BenchmarkRBACModelMedium 573694 ns/op 194695 B/op 6018 allocs/op 603331 ns/op 194745 B/op 6018 allocs/op 0.95
BenchmarkRBACModelMedium - ns/op 573694 ns/op 603331 ns/op 0.95
BenchmarkRBACModelMedium - B/op 194695 B/op 194745 B/op 1.00
BenchmarkRBACModelMedium - allocs/op 6018 allocs/op 6018 allocs/op 1
BenchmarkRBACModelLarge 5877119 ns/op 1933085 B/op 60305 allocs/op 5897559 ns/op 1933337 B/op 60297 allocs/op 1.00
BenchmarkRBACModelLarge - ns/op 5877119 ns/op 5897559 ns/op 1.00
BenchmarkRBACModelLarge - B/op 1933085 B/op 1933337 B/op 1.00
BenchmarkRBACModelLarge - allocs/op 60305 allocs/op 60297 allocs/op 1.00
BenchmarkRBACModelWithResourceRoles 5249 ns/op 2738 B/op 28 allocs/op 5233 ns/op 2731 B/op 28 allocs/op 1.00
BenchmarkRBACModelWithResourceRoles - ns/op 5249 ns/op 5233 ns/op 1.00
BenchmarkRBACModelWithResourceRoles - B/op 2738 B/op 2731 B/op 1.00
BenchmarkRBACModelWithResourceRoles - allocs/op 28 allocs/op 28 allocs/op 1
BenchmarkRBACModelWithDomains 5084 ns/op 1829 B/op 25 allocs/op 5064 ns/op 1825 B/op 25 allocs/op 1.00
BenchmarkRBACModelWithDomains - ns/op 5084 ns/op 5064 ns/op 1.00
BenchmarkRBACModelWithDomains - B/op 1829 B/op 1825 B/op 1.00
BenchmarkRBACModelWithDomains - allocs/op 25 allocs/op 25 allocs/op 1
BenchmarkABACModel 2810 ns/op 1536 B/op 17 allocs/op 2764 ns/op 1535 B/op 17 allocs/op 1.02
BenchmarkABACModel - ns/op 2810 ns/op 2764 ns/op 1.02
BenchmarkABACModel - B/op 1536 B/op 1535 B/op 1.00
BenchmarkABACModel - allocs/op 17 allocs/op 17 allocs/op 1
BenchmarkABACRuleModel 4008919 ns/op 1328231 B/op 40092 allocs/op 3992478 ns/op 1329507 B/op 40092 allocs/op 1.00
BenchmarkABACRuleModel - ns/op 4008919 ns/op 3992478 ns/op 1.00
BenchmarkABACRuleModel - B/op 1328231 B/op 1329507 B/op 1.00
BenchmarkABACRuleModel - allocs/op 40092 allocs/op 40092 allocs/op 1
BenchmarkKeyMatchModel 6100 ns/op 3068 B/op 37 allocs/op 6065 ns/op 3067 B/op 37 allocs/op 1.01
BenchmarkKeyMatchModel - ns/op 6100 ns/op 6065 ns/op 1.01
BenchmarkKeyMatchModel - B/op 3068 B/op 3067 B/op 1.00
BenchmarkKeyMatchModel - allocs/op 37 allocs/op 37 allocs/op 1
BenchmarkRBACModelWithDeny 6979 ns/op 2483 B/op 49 allocs/op 6976 ns/op 2479 B/op 49 allocs/op 1.00
BenchmarkRBACModelWithDeny - ns/op 6979 ns/op 6976 ns/op 1.00
BenchmarkRBACModelWithDeny - B/op 2483 B/op 2479 B/op 1.00
BenchmarkRBACModelWithDeny - allocs/op 49 allocs/op 49 allocs/op 1
BenchmarkPriorityModel 4216 ns/op 1765 B/op 22 allocs/op 4130 ns/op 1762 B/op 22 allocs/op 1.02
BenchmarkPriorityModel - ns/op 4216 ns/op 4130 ns/op 1.02
BenchmarkPriorityModel - B/op 1765 B/op 1762 B/op 1.00
BenchmarkPriorityModel - allocs/op 22 allocs/op 22 allocs/op 1
BenchmarkRBACModelWithDomainPatternLarge 22822 ns/op 16719 B/op 164 allocs/op 22550 ns/op 16720 B/op 164 allocs/op 1.01
BenchmarkRBACModelWithDomainPatternLarge - ns/op 22822 ns/op 22550 ns/op 1.01
BenchmarkRBACModelWithDomainPatternLarge - B/op 16719 B/op 16720 B/op 1.00
BenchmarkRBACModelWithDomainPatternLarge - allocs/op 164 allocs/op 164 allocs/op 1
BenchmarkRoleManagerSmall 69965 ns/op 11955 B/op 797 allocs/op 70426 ns/op 11955 B/op 797 allocs/op 0.99
BenchmarkRoleManagerSmall - ns/op 69965 ns/op 70426 ns/op 0.99
BenchmarkRoleManagerSmall - B/op 11955 B/op 11955 B/op 1
BenchmarkRoleManagerSmall - allocs/op 797 allocs/op 797 allocs/op 1
BenchmarkRoleManagerMedium 733074 ns/op 125914 B/op 8741 allocs/op 737197 ns/op 125914 B/op 8741 allocs/op 0.99
BenchmarkRoleManagerMedium - ns/op 733074 ns/op 737197 ns/op 0.99
BenchmarkRoleManagerMedium - B/op 125914 B/op 125914 B/op 1
BenchmarkRoleManagerMedium - allocs/op 8741 allocs/op 8741 allocs/op 1
BenchmarkRoleManagerLarge 8216659 ns/op 1349922 B/op 89741 allocs/op 7871387 ns/op 1349920 B/op 89741 allocs/op 1.04
BenchmarkRoleManagerLarge - ns/op 8216659 ns/op 7871387 ns/op 1.04
BenchmarkRoleManagerLarge - B/op 1349922 B/op 1349920 B/op 1.00
BenchmarkRoleManagerLarge - allocs/op 89741 allocs/op 89741 allocs/op 1
BenchmarkBuildRoleLinksWithPatternLarge 5959605086 ns/op 5341426352 B/op 60948374 allocs/op 5925034102 ns/op 5343541856 B/op 60948848 allocs/op 1.01
BenchmarkBuildRoleLinksWithPatternLarge - ns/op 5959605086 ns/op 5925034102 ns/op 1.01
BenchmarkBuildRoleLinksWithPatternLarge - B/op 5341426352 B/op 5343541856 B/op 1.00
BenchmarkBuildRoleLinksWithPatternLarge - allocs/op 60948374 allocs/op 60948848 allocs/op 1.00
BenchmarkBuildRoleLinksWithDomainPatternLarge 162129082 ns/op 141548710 B/op 1676482 allocs/op 162332939 ns/op 141537744 B/op 1676490 allocs/op 1.00
BenchmarkBuildRoleLinksWithDomainPatternLarge - ns/op 162129082 ns/op 162332939 ns/op 1.00
BenchmarkBuildRoleLinksWithDomainPatternLarge - B/op 141548710 B/op 141537744 B/op 1.00
BenchmarkBuildRoleLinksWithDomainPatternLarge - allocs/op 1676482 allocs/op 1676490 allocs/op 1.00
BenchmarkBuildRoleLinksWithPatternAndDomainPatternLarge 6152176805 ns/op 5479983464 B/op 62559118 allocs/op 6139471888 ns/op 5482952368 B/op 62559900 allocs/op 1.00
BenchmarkBuildRoleLinksWithPatternAndDomainPatternLarge - ns/op 6152176805 ns/op 6139471888 ns/op 1.00
BenchmarkBuildRoleLinksWithPatternAndDomainPatternLarge - B/op 5479983464 B/op 5482952368 B/op 1.00
BenchmarkBuildRoleLinksWithPatternAndDomainPatternLarge - allocs/op 62559118 allocs/op 62559900 allocs/op 1.00
BenchmarkHasLinkWithPatternLarge 10203 ns/op 7608 B/op 111 allocs/op 10275 ns/op 7604 B/op 111 allocs/op 0.99
BenchmarkHasLinkWithPatternLarge - ns/op 10203 ns/op 10275 ns/op 0.99
BenchmarkHasLinkWithPatternLarge - B/op 7608 B/op 7604 B/op 1.00
BenchmarkHasLinkWithPatternLarge - allocs/op 111 allocs/op 111 allocs/op 1
BenchmarkHasLinkWithDomainPatternLarge 484.7 ns/op 80 B/op 5 allocs/op 504.5 ns/op 80 B/op 5 allocs/op 0.96
BenchmarkHasLinkWithDomainPatternLarge - ns/op 484.7 ns/op 504.5 ns/op 0.96
BenchmarkHasLinkWithDomainPatternLarge - B/op 80 B/op 80 B/op 1
BenchmarkHasLinkWithDomainPatternLarge - allocs/op 5 allocs/op 5 allocs/op 1
BenchmarkHasLinkWithPatternAndDomainPatternLarge 10303 ns/op 7604 B/op 111 allocs/op 10449 ns/op 7604 B/op 111 allocs/op 0.99
BenchmarkHasLinkWithPatternAndDomainPatternLarge - ns/op 10303 ns/op 10449 ns/op 0.99
BenchmarkHasLinkWithPatternAndDomainPatternLarge - B/op 7604 B/op 7604 B/op 1
BenchmarkHasLinkWithPatternAndDomainPatternLarge - allocs/op 111 allocs/op 111 allocs/op 1

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.