mirror of
https://github.com/frappe/books.git
synced 2025-01-05 16:12:21 +00:00
ci: add test script
This commit is contained in:
parent
70d164d18d
commit
c9ac100bc1
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -1,10 +1,6 @@
|
|||||||
name: Build
|
name: Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches: [$default-branch]
|
|
||||||
paths-ignore:
|
|
||||||
- '**.md'
|
|
||||||
pull_request:
|
pull_request:
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '**.md'
|
- '**.md'
|
||||||
|
32
.github/workflows/test.yml
vendored
Normal file
32
.github/workflows/test.yml
vendored
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
name: Test
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [$default-branch]
|
||||||
|
paths-ignore:
|
||||||
|
- '**.md'
|
||||||
|
pull_request:
|
||||||
|
paths-ignore:
|
||||||
|
- '**.md'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
setup_and_build:
|
||||||
|
runs-on: macos-11
|
||||||
|
steps:
|
||||||
|
- name: Setup node
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: '16.13.1'
|
||||||
|
|
||||||
|
- name: Set yarn version
|
||||||
|
run: yarn set version 1.22.18
|
||||||
|
|
||||||
|
- name: Checkout Books
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: yarn
|
||||||
|
|
||||||
|
- name: Yarn Tests
|
||||||
|
run: yarn test
|
Loading…
Reference in New Issue
Block a user