Merge pull request #258 from aws-amplify/use-node-20 #459
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: Running Code Coverage | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [20.x] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3.4.0 https://github.com/actions/checkout/commit/24cb9080177205b6e8c946b17badbe402adc938f | |
| with: | |
| fetch-depth: 2 | |
| - name: Set up Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 https://github.com/actions/setup-node/commit/64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install dependencies | |
| run: yarn install | |
| - name: Run the tests | |
| run: yarn test:coverage | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@e1dd05cde2ed37d100f658b34ea423728ba1812e # v2.12.2 https://github.com/codecov/codecov-action/commit/e1dd05cde2ed37d100f658b34ea423728ba1812e |