Skip to content
Myr

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 file

Take it

chore: setup GH action for testMichel Weststratebefore adoptionc59576a

lines 1–24why, one step back
1# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2# 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: test

chore: fix test jobMichel Weststratebefore adoptionad23da9

lines 25–27why, one step back
25 run: yarn test
26 - name: coverage test27 run: yarn jest --coverage

chore: setup GH action for testMichel Weststratebefore adoptionc59576a

lines 28–31why, one step back
28 - uses: coverallsapp/github-action@v1.1.2
29 with:30 github-token: ${{ secrets.GITHUB_TOKEN }}31