Skip to content

Commit

Permalink
use an empty value instead of 'no-key'
Browse files Browse the repository at this point in the history
  • Loading branch information
mmomtchev committed Sep 26, 2023
1 parent 8ed0ae2 commit 4d7fdd6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ on:
workflow_dispatch:

env:
STADIA_MAPS_API_KEY: ${{ secrets.STADIA_MAPS_API_KEY || 'no-key' }}
STADIA_MAPS_API_KEY: ${{ secrets.STADIA_MAPS_API_KEY }}

jobs:
default:
runs-on: ubuntu-latest

steps:
- run: echo "::add-mask::${{ secrets.STADIA_MAPS_API_KEY }}"
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- run: echo "::add-mask::${{ secrets.STADIA_MAPS_API_KEY }}"
- run: npm i
- run: npm run build --if-present
- run: npm test
Expand Down Expand Up @@ -53,12 +53,12 @@ jobs:
- '8.1.0'

steps:
- run: echo "::add-mask::${{ secrets.STADIA_MAPS_API_KEY }}"
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- run: echo "::add-mask::${{ secrets.STADIA_MAPS_API_KEY }}"
- run: npm i
- run: npm i --force ol@${{ matrix.ol-version }}
- run: npm run build --if-present
Expand All @@ -68,12 +68,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- run: echo "::add-mask::${{ secrets.STADIA_MAPS_API_KEY }}"
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- run: echo "::add-mask::${{ secrets.STADIA_MAPS_API_KEY }}"
- run: |
npm i react@16.8 react-dom@16.8 react-test-renderer@16.8 @types/react@16 @types/react-dom@16 @testing-library/react@11
- run: npm i
Expand All @@ -85,12 +85,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- run: echo "::add-mask::${{ secrets.STADIA_MAPS_API_KEY }}"
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- run: echo "::add-mask::${{ secrets.STADIA_MAPS_API_KEY }}"
- run: |
npm i react@16.14 react-dom@16.14 react-test-renderer@16.14 @types/react@16 @types/react-dom@16 @testing-library/react@11
- run: npm i
Expand All @@ -102,12 +102,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- run: echo "::add-mask::${{ secrets.STADIA_MAPS_API_KEY }}"
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- run: echo "::add-mask::${{ secrets.STADIA_MAPS_API_KEY }}"
- run: |
npm i react@17 react-dom@17 react-test-renderer@17 @types/react@17 @types/react-dom@17 @testing-library/react@11
- run: npm i
Expand All @@ -119,12 +119,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- run: echo "::add-mask::${{ secrets.STADIA_MAPS_API_KEY }}"
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- run: echo "::add-mask::${{ secrets.STADIA_MAPS_API_KEY }}"
- run: |
npm i react@18 react-dom@18 react-test-renderer@18 @types/react@18 @types/react-dom@18 @testing-library/react@13
- run: npm i
Expand All @@ -136,12 +136,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- run: echo "::add-mask::${{ secrets.STADIA_MAPS_API_KEY }}"
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- run: echo "::add-mask::${{ secrets.STADIA_MAPS_API_KEY }}"
- run: |
npm i react@18.1 react-dom@18.1 react-test-renderer@18.1 @types/react@18 @types/react-dom@18 @testing-library/react@13
- run: npm i
Expand All @@ -153,12 +153,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- run: echo "::add-mask::${{ secrets.STADIA_MAPS_API_KEY }}"
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- run: echo "::add-mask::${{ secrets.STADIA_MAPS_API_KEY }}"
- run: |
npm i react@18.2 react-dom@18.2 react-test-renderer@18.2 @types/react@18 @types/react-dom@18 @testing-library/react@13
- run: npm i
Expand All @@ -170,12 +170,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- run: echo "::add-mask::${{ secrets.STADIA_MAPS_API_KEY }}"
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- run: echo "::add-mask::${{ secrets.STADIA_MAPS_API_KEY }}"
- run: npm i
- run: npm run test
env:
Expand Down
2 changes: 1 addition & 1 deletion test/RLayerMisc.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import RLayerStadia from 'rlayers/layer/RLayerStadia';

import * as common from './common';

if (semver.gte(VERSION, '8.0.0') && process.env.STADIA_MAPS_API_KEY !== 'no-key') {
if (semver.gte(VERSION, '8.0.0') && process.env.STADIA_MAPS_API_KEY !== '') {
describe('<RLayerStadia>', () => {
it('should display a tiled Stadia layer', () => {
const layer = React.createRef() as React.RefObject<RLayerStadia>;
Expand Down

0 comments on commit 4d7fdd6

Please sign in to comment.