Skip to content

Commit

Permalink
Merge pull request #190 from jamesfer/update-node-neo4j-test-versions
Browse files Browse the repository at this point in the history
Update node and neo4j versions in ci
  • Loading branch information
jamesfer committed Feb 17, 2024
2 parents 0e43fb4 + 48eeca8 commit c2db723
Showing 1 changed file with 50 additions and 19 deletions.
69 changes: 50 additions & 19 deletions .github/workflows/default.yml
Expand Up @@ -3,51 +3,82 @@ on: push

jobs:
test:
name: Tests (neo4j ${{ matrix.neo4j }})
name: Tests (node ${{ matrix.node-version }})
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- '18'
- '20'
- '21'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: yarn install --frozen-lockfile
- run: yarn lint
- run: yarn build
- run: yarn test:unit
- uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: test-${{ join(matrix.*, '-') }}
parallel: true

integration-test:
name: Integration tests (neo4j ${{ matrix.neo4j }}, node ${{ matrix.node-version }})
runs-on: ubuntu-latest
strategy:
matrix:
neo4j:
- '3.5'
- '4.0'
- '4.1'
- '4.2'
- '4.4'
- '5.16'
node-version:
- '21'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 12
node-version: ${{ matrix.node-version }}
- run: yarn install --frozen-lockfile
- run: yarn validate
- run: yarn test
env:
NEO4J_VERSION: ${{ matrix.neo4j }}
- uses: coverallsapp/github-action@master
- uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: neo4j-${{ matrix.neo4j }}
flag-name: integration-test-${{ join(matrix.*, '-') }}
parallel: true

finialize-coverage:
name: Finalize coverage
needs: test
needs:
- test
- integration-test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
- name: Finalise coverage
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true

deploy:
name: Deploy
needs: test
runs-on: ubuntu-latest
needs:
- test
- integration-test
if: github.ref == 'refs/heads/master'
concurrency:
group: deploy
cancel-in-progress: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 12
node-version: 21
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn semantic-release
Expand Down

0 comments on commit c2db723

Please sign in to comment.