Skip to content

Commit

Permalink
Add output and 1st test
Browse files Browse the repository at this point in the history
  • Loading branch information
placintaalexandru committed Oct 27, 2023
1 parent c2d87b8 commit d9a6311
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ TS_FILES=$(git diff --staged --name-only | grep -c "src/")
DIST_MODIFIED=$(git diff --staged --name-only | grep -c "dist/index.js")

if [ "$TS_FILES" -gt 0 ] && [ "$DIST_MODIFIED" -eq 0 ] ; then
echo "You modified TypeScript files but apparently did not run 'npm run build'".
exit 1;
npm run build
fi
6 changes: 3 additions & 3 deletions .github/workflows/test_installed_versions.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Continuous integration - test installed version
name: CI - test installed version
on:
- pull_request
jobs:
Expand All @@ -12,7 +12,6 @@ jobs:
- windows-latest
toolchain:
- 1.70.0
- nightly
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -23,6 +22,7 @@ jobs:
with:
toolchain: ${{ matrix.toolchain }}
profile: minimal
override: true

- name: Test toolchain outputs
env:
Expand All @@ -42,7 +42,6 @@ jobs:
matrix:
toolchain:
- 1.70.0
- nightly
# Docker image, not the GitHub Actions VM
container: ubuntu:latest
steps:
Expand All @@ -59,6 +58,7 @@ jobs:
with:
toolchain: ${{ matrix.toolchain }}
profile: minimal
override: true

- name: Test toolchain outputs
env:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Unit Test
name: Unit Tests
on:
- pull_request
permissions:
Expand Down

0 comments on commit d9a6311

Please sign in to comment.