Skip to content

Commit

Permalink
Updated npm test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
florianchrometz committed Oct 21, 2023
1 parent 88fb35e commit 84779d9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/npm-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,25 @@ name: Test package on new push or pull request

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test
2 changes: 2 additions & 0 deletions german-metadata.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

// City data array (Sample data for Frankfurt am Main)
const cities = require('./cities.json');

Expand Down

0 comments on commit 84779d9

Please sign in to comment.