Update README.md #83
This file contains hidden or 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: Node Blog CI | |
| on: | |
| push: | |
| branches-ignore: | |
| - release | |
| pull_request: | |
| branches-ignore: | |
| - release | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [16.x] | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Launch MongoDB | |
| uses: wbari/start-mongoDB@master | |
| with: | |
| mongoDBVersion: 5 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@master | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: yarn install, build, and test | |
| run: | | |
| yarn install | |
| yarn run build | |
| yarn run test:cov | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@master | |
| with: | |
| token: ${{secrets.CODECOV_TOKEN}} | |
| env: | |
| CI: true |