Skip to content

Add findOffersForDate query #6

Add findOffersForDate query

Add findOffersForDate query #6

Workflow file for this run

name: Run tests
on:
push:
branches:
- main
jobs:
test:
strategy:
matrix:
node-version: [18.x, 20.x]
os: [ubuntu-latest, macos-latest]
# Node 18.x needs for ipv6 entry modification in hosts file and how do it on windows is not clear
# due to permissions required etc
exclude:
- os: windows-latest
node-version: 18.x
runs-on: ${{ matrix.os }}
steps:
# Node 18 does resolves localhost to ipv6 address by default but refuses any connection to it
# Fix this by changing DNS entries in /etc/hosts file to resolve localhost to ipv4 address
# https://stackoverflow.com/questions/72648487/node-js-16-17-changed-resolution-of-localhost
- run: ${{ !startsWith(matrix.os, 'ubuntu') }} || sudo sed -i '/localhost/c\127.0.0.1 localhost' /etc/hosts
- run: ${{ !startsWith(matrix.os, 'macos') }} || sudo sed -i '' -e 's/.*localhost.*/127.0.0.1 localhost/g' /etc/hosts
- uses: actions/checkout@v4
- name: Set up JRE 17
uses: actions/setup-java@v4
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '17'
java-package: 'jre'
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run test-ci