Merge pull request #45 from davidecaruso/dependabot/npm_and_yarn/ip-2… #71
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: test | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
eslint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: clone repository | |
uses: actions/checkout@v3 | |
- name: set Node.js version | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
- name: install dependencies | |
run: yarn install | |
- name: Run ESLint | |
run: yarn eslint | |
test: | |
name: node ${{ matrix.node }} on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
node: [14, 16, 18] | |
os: [ubuntu-latest] | |
steps: | |
- name: clone repository | |
uses: actions/checkout@v3 | |
- name: set node.js version | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: install dependencies | |
run: yarn install | |
- name: run test coverage | |
run: yarn test:coverage | |
- name: coveralls github action | |
uses: coverallsapp/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
flag-name: ${{matrix.os}}-node-${{ matrix.node }} | |
prettier: | |
runs-on: ubuntu-latest | |
steps: | |
- name: clone repository | |
uses: actions/checkout@v3 | |
- name: set node.js version | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
- name: install dependencies | |
run: yarn install | |
- name: run prettier | |
run: yarn prettier | |
typescript: | |
name: node ${{ matrix.node }} on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
node: [14, 16, 18] | |
os: [ubuntu-latest] | |
steps: | |
- name: clone repository | |
uses: actions/checkout@v3 | |
- name: set node.js version | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: install dependencies | |
run: yarn install | |
- name: build | |
run: yarn build |