test.yml
This file
Path
.github/workflows/test.yml
30 lines · 1011 bytes · YAML
Last changed by
chore: fix tests on masterMichel Weststratebefore adoptione6aa92c
History of this fileTake it
chore: setup GH action for testMichel Weststratebefore adoptionc59576a
lines 1–12why, 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:chore: fix tests on masterMichel Weststratebefore adoptione6aa92c
line 13why, one step back13 node-version: [16.x]chore: setup GH action for testMichel Weststratebefore adoptionc59576a
lines 14–15why, one step back14 # See supported Node.js release schedule at https://nodejs.org/en/about/releases/15 steps:chore: fix CI. maybe.Michel Weststratebefore adoption050522d
lines 16–30why, one step back16 - 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: "yarn"22 - name: yarn install23 run: yarn --frozen-lockfile24 - name: test25 run: yarn test26 - name: coverage test27 run: yarn jest --coverage28 - uses: coverallsapp/github-action@v1.1.229 with:30 github-token: ${{ secrets.GITHUB_TOKEN }}