test.yml
This file
Path
.github/workflows/test.yml
31 lines · 1000 bytes · YAML
Last changed by
chore: fix test jobMichel Weststratebefore adoptionad23da9
History of this fileTake it
chore: setup GH action for testMichel Weststratebefore adoptionc59576a
lines 1–24why, one step back1# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node2# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions34name: Test56on: ["push", "pull_request"]78jobs:9 build:10 runs-on: ubuntu-latest11 strategy:12 matrix:13 node-version: [12.x, 14.x, 16.x]14 # See supported Node.js release schedule at https://nodejs.org/en/about/releases/15 steps:16 - uses: actions/checkout@v217 - name: Use Node.js ${{ matrix.node-version }}18 uses: actions/setup-node@v219 with:20 node-version: ${{ matrix.node-version }}21 cache: 'npm'22 - name: yarn install23 run: yarn --frozen-lockfile24 - name: testchore: fix test jobMichel Weststratebefore adoptionad23da9
lines 25–27why, one step back25 run: yarn test26 - name: coverage test27 run: yarn jest --coveragechore: setup GH action for testMichel Weststratebefore adoptionc59576a
lines 28–31why, one step back28 - uses: coverallsapp/github-action@v1.1.229 with:30 github-token: ${{ secrets.GITHUB_TOKEN }}31