* Install jest * Configure jest script * Fix eslintrc * Add @types/jest * Add test for validate-new-version * Fix eslintrc * Add workflow file * Add node version * cd to script/release * Fix workflow file * Fix version * Ignore from root * Update yarn.lock * Set defaults.run.working-directory
36 lines
679 B
YAML
36 lines
679 B
YAML
name: Release_Script_Test
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: scripts/release
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- "scripts/release/**"
|
|
- ".github/workflows/release-script-test.yml"
|
|
pull_request:
|
|
paths:
|
|
- "scripts/release/**"
|
|
- ".github/workflows/release-script-test.yml"
|
|
|
|
jobs:
|
|
test:
|
|
name: Test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2.3.4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v2.4.0
|
|
with:
|
|
version: "14"
|
|
cache: "yarn"
|
|
|
|
- name: Install Dependencies
|
|
run: yarn install --frozen-lockfile
|
|
|
|
- name: Test
|
|
run: yarn test
|