Skip to content

Commit

Permalink
Merge pull request #135 from ThomasAribart/test-PRs-with-multiple-TS-…
Browse files Browse the repository at this point in the history
…versions

test PRs with multiple TS versions
  • Loading branch information
ThomasAribart committed May 9, 2023
2 parents 7d36fbd + 9cd1c52 commit 0b3819f
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 18 deletions.
19 changes: 19 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name-template: 'v$RESOLVED_VERSION 🌈'
tag-template: 'v$RESOLVED_VERSION'
version-resolver:
major:
labels:
- major
minor:
labels:
- minor
patch:
labels:
- patch
default: patch
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&'
template: |
## Changes
$CHANGES
19 changes: 19 additions & 0 deletions .github/workflows/draft-or-update-next-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 📝 Draft or update next release
concurrency: draft_or_update_next_release

on:
push:
branches:
- master

jobs:
prepare-deployment:
name: 📝 Draft or update next release
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v1

- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18 changes: 0 additions & 18 deletions .github/workflows/main.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: 🎯 Test PR
on:
pull_request:
types: [opened, reopened, synchronize]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [16, 18]
typescript: [
"~4.5.5",
"~4.7.4",
"~4.8.3",
"~4.9.5",
# TODO: Fix FromSchema in those versions
# "~5.0.4",
# "latest",
]
name: Node ${{ matrix.node }} / TS ${{ matrix.typescript }}
steps:
- name: "Checkout latest code"
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: yarn
- name: Install TS at correct version
run: yarn add --dev typescript@${{ matrix.typescript }}
- name: Run tests
run: yarn test

0 comments on commit 0b3819f

Please sign in to comment.