Skip to content

V2

V2 #71

Workflow file for this run

name: Node CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node-version: [18]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Cache node modules
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-build-${{ env.cache-name }}-
${{ runner.OS }}-build-
${{ runner.OS }}-
- name: yarn install, build
run: |
yarn install
yarn build
- name: test, report coverage
run: |
yarn verify-translation
yarn test
# - uses: codecov/codecov-action@v1
# if: success() && matrix.os == 'ubuntu-latest'
# with:
# token: ${{ secrets.CODECOV_TOKEN }}