lucene-filter.js

Data filter for lucene queries
git clone git://git.finwo.net/lib/lucene-filter.js
Log | Files | Refs | README | LICENSE

commit 9a5e9130e2596694fe2a906e8c12da66521fc172
parent c9a82a9283cae42ebbeb46a407ffc28bc7e36b8a
Author: finwo <finwo@pm.me>
Date:   Thu,  1 Oct 2020 11:48:05 +0200

Update github workflows

Diffstat:
A.github/workflows/nodejs.yml | 44++++++++++++++++++++++++++++++++++++++++++++
D.github/workflows/publish.yml | 22----------------------
D.github/workflows/test.yml | 24------------------------
3 files changed, 44 insertions(+), 46 deletions(-)

diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml @@ -0,0 +1,44 @@ +# 118b8825-e6de-4c10-8ec2-e3d5614c1e1f +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Node.js CI + +on: push + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x, 14.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run build --if-present + - run: npm test + env: + CI: true + + publish: + needs: build + runs-on: ubuntu-latest + if: github.ref == 'refs/heads/master' + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 14 + registry-url: https://registry.npmjs.org/ + - run: npm ci + - run: npm build + - run: if [ $(npm view $(node -p "require('./package.json').name") version) != $(node -p "require('./package.json').version") ]; then npm publish ; fi + env: + NODE_AUTH_TOKEN: ${{secrets.npm_token}} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml @@ -1,22 +0,0 @@ -name: Test and publish - -on: - push: - branches: - - master - -jobs: - publish: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - with: - node-version: 12 - registry-url: https://registry.npmjs.org/ - - run: npm ci - - run: npm build --if-present - - run: npm test - - run: if [ $(npm view $(node -p "require('./package.json').name") version) != $(node -p "require('./package.json').version") ]; then npm publish ; fi - env: - NODE_AUTH_TOKEN: ${{secrets.npm_token}} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml @@ -1,24 +0,0 @@ -name: Test and publish - -on: - push: - branches-ignore: - - master - -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [10.x, 12.x] - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm ci - - run: npm run build --if-present - - run: npm test - env: - CI: true