Separet toEstimatedCallNotices from getNoticesForLeg(). #10384
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: TypeScript Check & Test | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- '**.js' | |
- '**.ts' | |
- '**.tsx' | |
- '**/tsc.yml' | |
- '**.lock' | |
- 'package.json' | |
- 'patches/**' | |
jobs: | |
tsc: | |
name: tsc | |
strategy: | |
matrix: | |
org: [atb, nfk, fram, troms] | |
environment: ${{ matrix.org }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: install node v18 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 18 | |
- name: Add Entur private registry credentials | |
run: sh ./scripts/add-entur-private-registry.sh | |
env: | |
ENTUR_REGISTRY_USER: ${{ vars.ENTUR_REGISTRY_USER }} | |
ENTUR_REGISTRY_TOKEN: ${{ secrets.ENTUR_REGISTRY_TOKEN }} | |
- uses: actions/cache@v2 | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/patches/**.patch') }} | |
- name: yarn install | |
run: yarn install --frozen-lockfile | |
- name: Install assets | |
run: sh ./scripts/generate-assets.sh ${{ matrix.org }} | |
- name: tsc | |
uses: icrawl/action-tsc@v1 | |
- name: Run tests | |
run: yarn test |