Merge pull request #962 from maxmind/dependabot/npm_and_yarn/typescri… #1505
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
name: Run tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: '3 2 * * SUN' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
version: [16, 18, 20] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.version }} | |
- run: npm install | |
- run: npm test --coverage | |
- run: npm run build | |
- run: npm run build:docs | |
- run: npm link | |
- run: npm install | |
working-directory: e2e/js | |
- run: npm link '@maxmind/geoip2-node' | |
working-directory: e2e/js | |
- run: npx jest | |
working-directory: e2e/js | |
- run: npm install | |
working-directory: e2e/ts | |
- run: npm link '@maxmind/geoip2-node' | |
working-directory: e2e/ts | |
- run: npx jest | |
working-directory: e2e/ts |