forked from prettier/prettier
-
-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (39 loc) · 918 Bytes
/
release-script-test.yml
File metadata and controls
47 lines (39 loc) · 918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Release_Script_Test
defaults:
run:
working-directory: scripts/release
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- main
- patch-release
- next
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@v3.5.3
- name: Setup Node.js
uses: actions/setup-node@v3.7.0
with:
# Minimal version the release script required
node-version: "18"
cache: "yarn"
- name: Install Dependencies
run: yarn install --immutable
- name: Test
run: yarn test