Updated faker examples to remove deprecated methods #1
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: build | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- '!*' # Do not execute on tags | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
test: | |
name: Test in node ${{ matrix.node-version }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [14.x, 16.x, 18.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{matrix.node-version}} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{matrix.node-version}} | |
- name: Install dependencies | |
run: npm install | |
- name: Run tests | |
run: npm run test | |
lint: | |
name: Lint code | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js 18 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 18 | |
- name: Install dependencies | |
run: npm install | |
- name: Lint code | |
run: npm run lint | |
coverage: | |
needs: | |
- test | |
name: Upload coverage to CodeClimate | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions/setup-node@master | |
with: | |
node-version: '18' | |
- name: Install dependencies | |
run: npm install | |
- uses: paambaati/[email protected] | |
env: | |
CC_TEST_REPORTER_ID: ${{secrets.CODE_CLIMATE_TEST_REPORTER_ID}} | |
with: | |
coverageCommand: npm run coverage:ci | |
coverageLocations: | | |
${{github.workspace}}/coverage/lcov.info:lcov |