Skip to content

Commit 0b3819f

Browse files
Merge pull request #135 from ThomasAribart/test-PRs-with-multiple-TS-versions
test PRs with multiple TS versions
2 parents 7d36fbd + 9cd1c52 commit 0b3819f

File tree

4 files changed

+74
-18
lines changed

4 files changed

+74
-18
lines changed

.github/release-drafter.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name-template: 'v$RESOLVED_VERSION 🌈'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
version-resolver:
4+
major:
5+
labels:
6+
- major
7+
minor:
8+
labels:
9+
- minor
10+
patch:
11+
labels:
12+
- patch
13+
default: patch
14+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
15+
change-title-escapes: '\<*_&'
16+
template: |
17+
## Changes
18+
19+
$CHANGES
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: 📝 Draft or update next release
2+
concurrency: draft_or_update_next_release
3+
4+
on:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
prepare-deployment:
11+
name: 📝 Draft or update next release
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 30
14+
steps:
15+
- uses: actions/checkout@v1
16+
17+
- uses: release-drafter/release-drafter@v5
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/main.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/pull-request.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: 🎯 Test PR
2+
on:
3+
pull_request:
4+
types: [opened, reopened, synchronize]
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
node: [16, 18]
12+
typescript: [
13+
"~4.5.5",
14+
"~4.7.4",
15+
"~4.8.3",
16+
"~4.9.5",
17+
# TODO: Fix FromSchema in those versions
18+
# "~5.0.4",
19+
# "latest",
20+
]
21+
name: Node ${{ matrix.node }} / TS ${{ matrix.typescript }}
22+
steps:
23+
- name: "Checkout latest code"
24+
uses: actions/checkout@v3
25+
with:
26+
ref: ${{ github.event.pull_request.head.sha }}
27+
- name: Set up node
28+
uses: actions/setup-node@v3
29+
with:
30+
node-version: ${{ matrix.node }}
31+
- name: Install dependencies
32+
run: yarn
33+
- name: Install TS at correct version
34+
run: yarn add --dev typescript@${{ matrix.typescript }}
35+
- name: Run tests
36+
run: yarn test

0 commit comments

Comments
 (0)