Skip to content

Merge pull request #34 from akiomik/npm-update #92

Merge pull request #34 from akiomik/npm-update

Merge pull request #34 from akiomik/npm-update #92

Workflow file for this run

name: Node.js CI
on:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: unset GITHUB_ACTIONS && npm test
- run: npm run lint
- run: npm run build
- run: npm pack
- name: test examples/redux-saga
run: |
cd examples/redux-saga
npm install
npm test -- --coverage
- name: test examples/hooks
run: |
cd examples/hooks
npm install
npm test -- --coverage
coverage:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
- run: unset GITHUB_ACTIONS && npm test -- --coverage
- uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}