Files
test-repo/.github/workflows/release-script-test.yml
T
Sosuke Suzuki bf2a24fdd1 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
2021-09-07 14:53:45 +09:00

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