use a direct link for OL CSS on jsdelivr #972
Workflow file for this run
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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Node.js CI | |
on: | |
push: | |
branches: ['*'] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
env: | |
STADIA_MAPS_API_KEY: ${{ secrets.STADIA_MAPS_API_KEY }} | |
jobs: | |
default: | |
runs-on: ubuntu-latest | |
steps: | |
- 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 | |
ol-versions: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ol-version: | |
- '6.10' | |
- '6.11' | |
- '6.12' | |
- '6.13' | |
- '6.14' | |
- '6.14.1' | |
- '6.15' | |
- '6.15.1' | |
- '7.0.0' | |
- '7.1.0' | |
- '7.2.0' | |
- '7.2.2' | |
- '7.3.0' | |
- '7.4.0' | |
- '7.5.1' | |
- '8.0.0' | |
- '8.1.0' | |
steps: | |
- 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 | |
- run: npm test | |
react-16-8: | |
runs-on: ubuntu-latest | |
steps: | |
- 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 [email protected] [email protected] [email protected] @types/react@16 @types/react-dom@16 @testing-library/react@11 | |
- run: npm i | |
- run: tsc | |
- run: npm test | |
- run: npm run build:examples | |
react-16-14: | |
runs-on: ubuntu-latest | |
steps: | |
- 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 [email protected] [email protected] [email protected] @types/react@16 @types/react-dom@16 @testing-library/react@11 | |
- run: npm i | |
- run: tsc | |
- run: npm test | |
- run: npm run build:examples | |
react-17: | |
runs-on: ubuntu-latest | |
steps: | |
- 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 | |
- run: tsc | |
- run: npm test | |
- run: npm run build:examples | |
react-18: | |
runs-on: ubuntu-latest | |
steps: | |
- 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 | |
- run: tsc | |
- run: npm test | |
- run: npm run build:examples | |
react-18-1: | |
runs-on: ubuntu-latest | |
steps: | |
- 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 [email protected] [email protected] [email protected] @types/react@18 @types/react-dom@18 @testing-library/react@13 | |
- run: npm i | |
- run: tsc | |
- run: npm test | |
- run: npm run build:examples | |
react-18-2: | |
runs-on: ubuntu-latest | |
steps: | |
- 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 [email protected] [email protected] [email protected] @types/react@18 @types/react-dom@18 @testing-library/react@13 | |
- run: npm i | |
- run: tsc | |
- run: npm test | |
- run: npm run build:examples | |
codecov: | |
runs-on: ubuntu-latest | |
steps: | |
- 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: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
- run: npm run codecov |