ci: update CI workflow to run TypeScript tests with new script (#480)

This commit is contained in:
DevCats
2025-10-15 14:03:12 -05:00
committed by GitHub
parent 2168360195
commit 90873e8009
2 changed files with 86 additions and 1 deletions
+23 -1
View File
@@ -13,6 +13,24 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v5
- name: Detect changed files
uses: dorny/paths-filter@v3
id: filter
with:
list-files: shell
filters: |
shared:
- 'test/**'
- 'package.json'
- 'bun.lock'
- 'bunfig.toml'
- 'tsconfig.json'
- '.github/workflows/ci.yaml'
- 'scripts/ts_test_auto.sh'
modules:
- 'registry/**/modules/**'
all:
- '**'
- name: Set up Terraform
uses: coder/coder/.github/actions/setup-tf@main
- name: Set up Bun
@@ -27,7 +45,11 @@ jobs:
- name: Install dependencies
run: bun install
- name: Run TypeScript tests
run: bun test
env:
ALL_CHANGED_FILES: ${{ steps.filter.outputs.all_files }}
SHARED_CHANGED: ${{ steps.filter.outputs.shared }}
MODULE_CHANGED_FILES: ${{ steps.filter.outputs.modules_files }}
run: ./scripts/ts_test_auto.sh
- name: Run Terraform tests
run: ./scripts/terraform_test_all.sh
- name: Run Terraform Validate