Skip to content

Commit

Permalink
ci: update ci config
Browse files Browse the repository at this point in the history
  • Loading branch information
leeqvip committed Dec 17, 2021
1 parent d32eeaf commit 4d5514b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
Empty file added .github/semantic.yml
Empty file.
13 changes: 5 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
name: build

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [ 7.1, 7.2, 7.3, 7.4, 8.0 ]
php: [7.1, 7.2, 7.3, 7.4, 8.0, 8.1]
stability: [ prefer-lowest, prefer-stable ]

name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
Expand Down Expand Up @@ -63,11 +59,12 @@ jobs:
needs: [ test, upload-coverage ]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: '14.17'
node-version: 'lts/*'

- name: Run semantic-release
if: github.repository == 'php-casbin/php-casbin' && github.event_name == 'push'
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: npx semantic-release

0 comments on commit 4d5514b

Please sign in to comment.