mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 07:29:04 -07:00
Add auto compile tsc
This commit is contained in:
parent
d808b58b74
commit
f3d7443678
1 changed files with 28 additions and 1 deletions
29
.github/workflows/lint_and_test.yml
vendored
29
.github/workflows/lint_and_test.yml
vendored
|
|
@ -5,7 +5,7 @@ on:
|
|||
branches: ['**']
|
||||
|
||||
jobs:
|
||||
build:
|
||||
test:
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [18.x]
|
||||
|
|
@ -33,3 +33,30 @@ jobs:
|
|||
- run: npm run checkPlugins
|
||||
- run: npm run lint
|
||||
- run: npm run test
|
||||
- run: npm run test2
|
||||
|
||||
auto_compile_and_push:
|
||||
if: github.ref != 'refs/heads/master'
|
||||
needs: [
|
||||
test
|
||||
]
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository.
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.head_ref }}
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '18.x'
|
||||
|
||||
- run: npm i && npm i -g typescript && rm -rdf ./FlowPlugins && tsc
|
||||
|
||||
- uses: stefanzweifel/git-auto-commit-action@v5
|
||||
with:
|
||||
commit_message: Apply auto-build changes
|
||||
Loading…
Add table
Add a link
Reference in a new issue