pelias-openstreetmap 5.18.0 → 5.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,23 @@
1
+ name: Unit Tests
2
+ on: workflow_call
3
+ jobs:
4
+ unit-tests:
5
+ runs-on: '${{ matrix.os }}'
6
+ strategy:
7
+ matrix:
8
+ os:
9
+ - ${{ vars.UBUNTU_VERSION }}
10
+ node-version:
11
+ - 12.x
12
+ - 14.x
13
+ - 16.x
14
+ steps:
15
+ - uses: actions/checkout@v2
16
+ - name: 'Install node.js ${{ matrix.node-version }}'
17
+ uses: actions/setup-node@v2-beta
18
+ with:
19
+ node-version: '${{ matrix.node-version }}'
20
+ - name: Run unit tests
21
+ run: |
22
+ npm install
23
+ npm run ci
@@ -0,0 +1,7 @@
1
+ name: Continuous Integration
2
+ on: pull_request
3
+ jobs:
4
+ unit-tests:
5
+ # only run this job for forks
6
+ if: github.event.pull_request.head.repo.full_name != github.repository
7
+ uses: ./.github/workflows/_test.yml
@@ -2,29 +2,11 @@ name: Continuous Integration
2
2
  on: push
3
3
  jobs:
4
4
  unit-tests:
5
- runs-on: '${{ matrix.os }}'
6
- strategy:
7
- matrix:
8
- os:
9
- - ubuntu-20.04
10
- node-version:
11
- - 12.x
12
- - 14.x
13
- - 16.x
14
- steps:
15
- - uses: actions/checkout@v2
16
- - name: 'Install node.js ${{ matrix.node-version }}'
17
- uses: actions/setup-node@v2-beta
18
- with:
19
- node-version: '${{ matrix.node-version }}'
20
- - name: Run unit tests
21
- run: |
22
- npm install
23
- npm run ci
5
+ uses: ./.github/workflows/_test.yml
24
6
  npm-publish:
25
7
  needs: unit-tests
26
- if: github.ref == 'refs/heads/master' && github.event_name == 'push'
27
- runs-on: ubuntu-20.04
8
+ if: github.ref == 'refs/heads/master' && needs.unit-tests.result == 'success'
9
+ runs-on: ${{ vars.UBUNTU_VERSION }}
28
10
  steps:
29
11
  - uses: actions/checkout@v2
30
12
  - name: Install Node.js
@@ -44,7 +26,7 @@ jobs:
44
26
  # note: github actions won't run a job if you don't call one of the status check functions, so `always()` is called since it evalutes to `true`
45
27
  if: ${{ always() && needs.unit-tests.result == 'success' && (needs.npm-publish.result == 'success' || needs.npm-publish.result == 'skipped') }}
46
28
  needs: [unit-tests, npm-publish]
47
- runs-on: ubuntu-20.04
29
+ runs-on: ${{ vars.UBUNTU_VERSION }}
48
30
  steps:
49
31
  - uses: actions/checkout@v2
50
32
  - name: Build Docker images
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pelias-openstreetmap",
3
- "version": "5.18.0",
3
+ "version": "5.19.0",
4
4
  "engines": {
5
5
  "node": ">=10.0.0"
6
6
  },