bigbluebutton-Github/.github/workflows/ts-code-validation.yml
Stefan Weil 39406d0d42 Update GitHub actions checkout, cache and upload-artifact from v3 to v4
This fixes several CI warnings like this one:

    Node.js 16 actions are deprecated.
    Please update the following actions to use Node.js 20: actions/checkout@v3,
    actions/cache@v3, actions/upload-artifact@v3. For more information see:
    https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

Signed-off-by: Stefan Weil <sw@weilnetz.de>

Update more GitHub actions from v3 to v4

Signed-off-by: Stefan Weil <sw@weilnetz.de>

Change upload and download to work with v4

Signed-off-by: Stefan Weil <sw@weilnetz.de>

Update GitHub action eps1lon/actions-label-merge-conflict

Signed-off-by: Stefan Weil <sw@weilnetz.de>

Update GitHub action nick-fields/retry

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-03-25 12:01:24 -03:00

39 lines
1.1 KiB
YAML

name: Typescript - validate code (eslint)
on:
push:
branches:
- "develop"
- "v2.[5-9].x-release"
- "v[3-9].*.x-release"
paths:
- "bigbluebutton-html5/**.ts"
- "bigbluebutton-html5/**.tsx"
- "bigbluebutton-html5/package.json"
- "bigbluebutton-html5/package-lock.json"
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-validation:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Merge branches
uses: ./.github/actions/merge-branches
- name: install meteor
run: curl https://install.meteor.com/ | sh
- name: run meteor npm install
working-directory: bigbluebutton-html5
run: meteor npm install
- name: typescript code validation with eslint
working-directory: bigbluebutton-html5
run: npx eslint . --ext .ts,.tsx