Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CI

on: [ push, pull_request ]
on: [push, pull_request]

jobs:
lint:
Expand All @@ -21,7 +21,7 @@ jobs:
run: yarn run fix

coverage:
needs: [ lint ]
needs: [lint]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -50,11 +50,11 @@ jobs:
parallel: true

test:
needs: [ lint ]
needs: [lint]
runs-on: ubuntu-latest
strategy:
matrix:
node: [ ^16, ^17, ^18 ]
node: [^16, ^17, ^18]
steps:
- uses: actions/checkout@v2

Expand All @@ -65,7 +65,7 @@ jobs:
mysql root password: password

- name: Set up Node.js
uses: actions/setup-node@v2.1.5
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}

Expand All @@ -76,15 +76,20 @@ jobs:
run: yarn run test

semantic-release:
needs: [ lint,test,coverage ]
needs: [lint, test, coverage]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: ^18

- name: Run semantic-release
if: github.repository == 'node-casbin/typeorm-adapter' && github.event_name == 'push'
run: |
yarn install --no-lockfile
yarn install
yarn run prepublish
yarn run release
env:
Expand Down
Loading