48 lines
1004 B
YAML
48 lines
1004 B
YAML
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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
|
with:
|
|
# Minimal version the release script required
|
|
node-version: "20"
|
|
cache: "yarn"
|
|
|
|
- name: Install Dependencies
|
|
run: yarn install --immutable
|
|
|
|
- name: Test
|
|
run: yarn test
|