forked from bigbluebutton/bigbluebutton
-
Notifications
You must be signed in to change notification settings - Fork 8
31 lines (31 loc) · 953 Bytes
/
Copy pathts-code-compilation.yml
File metadata and controls
31 lines (31 loc) · 953 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
name: Typescript - compile code
on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- "bigbluebutton-html5/**.ts"
- "bigbluebutton-html5/**.tsx"
- "bigbluebutton-html5/package.json"
- "bigbluebutton-html5/package-lock.json"
permissions:
contents: read
jobs:
ts-code-compilation:
runs-on: ubuntu-22.04
steps:
- name: Checkout PR's source merged into its target branch
if: github.event_name == 'pull_request'
uses: actions/checkout@v4
with:
ref: refs/pull/${{ github.event.number }}/merge
- name: Checkout commit/branch
if: github.event_name != 'pull_request'
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: run npm ci
working-directory: bigbluebutton-html5
run: npm ci
- name: typescript code compilation
working-directory: bigbluebutton-html5
run: npx tsc