mirror of
https://github.com/visgl/react-map-gl.git
synced 2025-12-08 20:16:02 +00:00
35 lines
798 B
YAML
35 lines
798 B
YAML
name: test
|
|
|
|
# On every pull request, but only on push to master
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
|
|
jobs:
|
|
test-node:
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
- uses: volta-cli/action@2d68418f32546fd191eb666e232b321d5726484d # v4.1.1
|
|
with:
|
|
cache: "yarn"
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
yarn bootstrap
|
|
|
|
- name: Run tests
|
|
env:
|
|
VITE_MAPBOX_TOKEN: ${{ secrets.MAPBOX_ACCESS_TOKEN_CI }}
|
|
run: |
|
|
yarn lint
|
|
yarn test ci
|
|
|
|
- name: Coveralls
|
|
uses: coverallsapp/github-action@09b709cf6a16e30b0808ba050c7a6e8a5ef13f8d # v1.2.5
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|