Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
acalcutt committed Aug 27, 2022
2 parents dd69c12 + f8e6e35 commit bf99f88
Show file tree
Hide file tree
Showing 677 changed files with 24,927 additions and 46,382 deletions.
7 changes: 4 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@
"no-invalid-this": "off",
"no-buffer-constructor": "off",

"array-bracket-spacing": "off",
"array-bracket-spacing": "error",
"consistent-return": "off",
"global-require": "off",
"import/no-commonjs": "error",
// TSC throws an error on unresolved imports; eslint doesn't understand .js extension in import statement
"import/no-unresolved": "off",
"key-spacing": "off",
"key-spacing": "error",
"no-eq-null": "off",
"no-lonely-if": "off",
"no-new": "off",
Expand Down Expand Up @@ -78,6 +78,7 @@
"no-multiple-empty-lines": [ "error", {
"max": 1
}],
"import/no-anonymous-default-export": ["error", {"allowLiteral": true} ],
"jsdoc/check-param-names": "warn",
"jsdoc/require-param": "warn",
"jsdoc/require-param-description": "warn",
Expand Down Expand Up @@ -108,7 +109,7 @@
"ignorePatterns": ["build/*.js", "*.json"],
"overrides": [
{
"files": ["debug/**", "test/**", "src/style-spec/**"],
"files": ["test/**", "src/style-spec/**"],
"rules": {
"jsdoc/check-param-names": "off",
"jsdoc/require-param": "off",
Expand Down
9 changes: 6 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "monthly"
ignore:
- dependency-name: "documentation"
interval: "weekly"
open-pull-requests-limit: 20
versioning-strategy: increase
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
4 changes: 2 additions & 2 deletions .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
steps:
# report status back to pull request
- uses: haya14busa/action-workflow_run-status@v1
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js 16 x64
uses: actions/setup-node@v2-beta
uses: actions/setup-node@v3.4.1
with:
node-version: 16
architecture: x64
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js 16 x64
uses: actions/setup-node@v2-beta
uses: actions/setup-node@v3.4.1
with:
node-version: 16
architecture: x64
Expand All @@ -31,15 +31,15 @@ jobs:
echo "${{ github.event.pull_request.base.sha }}" > build-info/base_sha
echo "${{ github.event.number }}" > build-info/pull_request_number
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: dist
path: ./dist
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: build-info
path: ./build-info
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
path: ./test/release
name: test-release
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -53,7 +53,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -67,4 +67,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
6 changes: 2 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jobs:
fail-fast: false
matrix:
os:
- macos-latest
- windows-latest
- ubuntu-latest
node_version:
- 16
Expand All @@ -23,9 +21,9 @@ jobs:
runs-on: ${{ matrix.os }}
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3.4.1
with:
node-version: ${{ matrix.node_version }}
architecture: ${{ matrix.architecture }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/publish-style-spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ jobs:
name: Build, publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Use Node.js 16 x64
uses: actions/setup-node@v2
uses: actions/setup-node@v3.4.1
with:
node-version: 16
architecture: x64
Expand All @@ -30,6 +30,7 @@ jobs:
- name: Build style spec
run: |
npm run build-style-spec
npm run generate-typings
cp -r dist/style-spec/* src/style-spec/dist
- name: Check version and publish
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,27 @@ jobs:
shell: bash
steps:

- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: main

- name: Use Node.js 16 x64
uses: actions/setup-node@v2
uses: actions/setup-node@v3.4.1
with:
node-version: 16
architecture: x64
registry-url: 'https://registry.npmjs.org'

- name: Get version
id: package-version
uses: martinbeentjes/npm-get-version-action@v1.1.0
uses: martinbeentjes/npm-get-version-action@v1.2.3

- name: Check tag does not exist yet
run: if git rev-list v${{ steps.package-version.outputs.current-version }}; then echo "Tag already exists. Aborting the release process."; exit 1; fi

- name: Tag commit and push
uses: mathieudutour/github-tag-action@v5.6
uses: mathieudutour/github-tag-action@v6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ steps.package-version.outputs.current-version }}
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
- name: Write dist/package.json
run: |
echo "{ \"type\": \"commonjs\" }" > dist/package.json
echo "{ \"type\": \"commonjs\", \"name\": \"maplibre-gl\" }" > dist/package.json
- name: Create Archive
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4
- uses: actions/stale@v5
with:
stale-issue-message: 'This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days.'
stale-pr-message: 'This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.'
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/test-browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,20 @@ on:

jobs:
test_browser:
name: macos-latest
runs-on: macos-latest
name: ubuntu-latest
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install fonts-noto-cjk
run: |
sudo apt-get update
sudo apt-get install fonts-noto-cjk
- name: Use Node.js 16 x64
uses: actions/setup-node@v2
uses: actions/setup-node@v3.4.1
with:
node-version: 16
architecture: x64
- run: npm ci
- run: npm run build-dev
- run: npm run test-browser
- run: xvfb-run -s "-ac -screen 0 1280x1024x24" npm run test-browser
4 changes: 2 additions & 2 deletions .github/workflows/test-expression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js 16 x64
uses: actions/setup-node@v2
uses: actions/setup-node@v3.4.1
with:
node-version: 16
architecture: x64
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-query.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js 16 x64
uses: actions/setup-node@v2
uses: actions/setup-node@v3.4.1
with:
node-version: 16
architecture: x64
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test-render.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- name: Use Node.js 16.13 x64
uses: actions/setup-node@v2
- uses: actions/checkout@v3
- name: Use Node.js 16 x64
uses: actions/setup-node@v3.4.1
with:
node-version: 16.13
node-version: 16
architecture: x64
- run: npm ci
- run: npm run build-dev
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-style-spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js 16 x64
uses: actions/setup-node@v2
uses: actions/setup-node@v3.4.1
with:
node-version: 16
architecture: x64
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-symbol-shaping.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js 16 x64
uses: actions/setup-node@v2
uses: actions/setup-node@v3.4.1
with:
node-version: 16
architecture: x64
Expand Down
26 changes: 2 additions & 24 deletions .github/workflows/test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,6 @@ on:
pull_request:

jobs:
test_unit_win_mac:
strategy:
matrix:
os:
- macos-latest
- windows-latest
node_version:
- 16
architecture:
- x64

name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node_version }}
architecture: ${{ matrix.architecture }}
- run: npm ci
- run: npm run test-unit

test_unit_ubuntu:
strategy:
Expand All @@ -42,9 +20,9 @@ jobs:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3.4.1
with:
node-version: ${{ matrix.node_version }}
architecture: ${{ matrix.architecture }}
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/typecheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: TypeCheck with Typescript Compiler

on:
push:
branches: [main]
pull_request:

jobs:
test_expression:
name: ubuntu-latest
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16 x64
uses: actions/[email protected]
with:
node-version: 16
architecture: x64
- run: npm ci
- run: npm run typecheck
4 changes: 2 additions & 2 deletions .github/workflows/upload-benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
upload_benchmarks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Use Node.js 16 x64
uses: actions/setup-node@v2
uses: actions/setup-node@v3.4.1
with:
node-version: 16
architecture: x64
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ test/integration/**/test-results.xml
test/integration/dist/**/*.js
test/integration/dist/**/*.json
test/integration/query/dist/fixtures.json
test/debug-pages/index.html
*/**/*.g.ts
.eslintcache
src/style-spec/dist/index.js
src/style-spec/dist/index.cjs
_batfish_site
_batfish_tmp
_site
Expand Down
Loading

0 comments on commit bf99f88

Please sign in to comment.