mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-01-06 13:15:24 +08:00
28 lines
709 B
YAML
28 lines
709 B
YAML
name: Test
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
- develop
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: '12.x'
|
|
- uses: actions/checkout@v2
|
|
- name: Check yarn cache integrity
|
|
run: yarn install --immutable --immutable-cache --check-cache
|
|
- name: Build packages
|
|
run: yarn build
|
|
# format tests don't pass on node 12 since icu is missing and tests don't work with locals
|
|
- name: Test packages
|
|
run: yarn test --ignore='@lowdefy/format'
|
|
- name: Upload coverage to codecov
|
|
run: bash <(curl -s https://codecov.io/bash)
|