diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000000..90da0d1e799 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,9 @@ +# see: https://docs.github.com/en/free-pro-team@latest/github/using-git/configuring-git-to-handle-line-endings#per-repository-settings + +# Set the default behavior to use LF line endings +* text eol=lf + +# Denote all files that are truly binary and should not be modified. +*.png binary +*.mvt binary +*.pbf binary diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 2142c074dd6..2f3f427a7f7 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -4,23 +4,23 @@ name: Node.js CI on: push: - branches: [ foobar ] # main -- disabled until a runner with GPU is available + branches: [ main ] pull_request: - branches: [ foobar ] # main -- disabled until a runner with GPU is available + branches: [ main ] jobs: build: strategy: + fail-fast: false matrix: os: - ubuntu-latest - # - macos-latest + - macos-latest + # TODO re-enable when we get windows working # - windows-latest node_version: - 10 - - 12 - - 14 architecture: - x64 @@ -34,4 +34,10 @@ jobs: node-version: ${{ matrix.node_version }} architecture: ${{ matrix.architecture }} - run: yarn install --frozen-lockfile - - run: yarn test + - if: ${{ runner.os == 'Windows' }} + run: npm config set script-shell bash.EXE + # see: https://github.com/stackgl/headless-gl#how-can-headless-gl-be-used-on-a-headless-linux-machine + - if: ${{ runner.os == 'Linux' }} + run: xvfb-run -s "-ac -screen 0 1280x1024x24" yarn test + - if: ${{ runner.os != 'Linux' }} + run: yarn test