Add tests for release script (#11454)
* 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
This commit is contained in:
1 parent
2bbe331f64
commit
bf2a24fdd1
8 files changed
+2454
-23
No files matched your search
@@ -0,0 +1,35 @@
|
||||
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
|
||||
Reference in new issue
Block a user