Skip to content

Commit 201e1b2

Browse files
authored
add syntax checks and tests to language workflows (#3)
* add syntax checks and tests to language workflows Signed-off-by: krrrr38 <k.kaizu38@gmail.com> * suppress progress logs on java Signed-off-by: krrrr38 <k.kaizu38@gmail.com> --------- Signed-off-by: krrrr38 <k.kaizu38@gmail.com>
1 parent 1ea15bb commit 201e1b2

10 files changed

Lines changed: 15 additions & 10 deletions

File tree

‎.github/workflows/test-go.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,5 @@ jobs:
3535
- run: go mod download
3636
- run: go build ./...
3737
- run: go fmt ./...
38+
- run: go vet ./...
39+
- run: go test ./test/... -run TestOptimalPortfolioScenario

‎.github/workflows/test-java17.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ jobs:
3333
distribution: temurin
3434
java-version: '17'
3535
cache: maven
36-
- run: ./mvnw compile -DskipTests
36+
- run: ./mvnw test -q -Dtest=OptimalPortfolioScenarioTest

‎.github/workflows/test-java8.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ jobs:
3333
distribution: temurin
3434
java-version: '8'
3535
cache: maven
36-
- run: ./mvnw compile -DskipTests
36+
- run: ./mvnw test -q -Dtest=OptimalPortfolioScenarioTest

‎.github/workflows/test-php.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,5 @@ jobs:
3232
with:
3333
php-version: '8.5'
3434
- run: composer install --no-interaction --prefer-dist
35+
- run: find src -name '*.php' -exec php -l {} +
36+
- run: ./vendor/bin/phpunit tests/OptimalPortfolioScenarioTest.php

‎.github/workflows/test-python.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,6 @@ jobs:
3232
with:
3333
python-version-file: 'python/pyproject.toml'
3434
cache: pip
35-
- run: pip install .
35+
- run: pip install ".[dev]"
36+
- run: find src -name '*.py' -exec python -m py_compile {} +
37+
- run: python -m pytest tests/test_optimal_portfolio_scenario.py

‎.github/workflows/test-ruby.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,5 @@ jobs:
3333
ruby-version: '3.3'
3434
bundler-cache: true
3535
working-directory: ruby
36+
- run: find lib -name '*.rb' -exec ruby -c {} +
37+
- run: bundle exec rspec spec/optimal_portfolio_scenario_spec.rb

‎.github/workflows/test-scala.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@ jobs:
3636
cache: sbt
3737
- uses: sbt/setup-sbt@af116cce31c00823d3903ce687f9cda3a4f19f1b # v1
3838
- run: sbt compile
39+
- run: sbt "testOnly folio.codinginterview.OptimalPortfolioScenario"

‎.github/workflows/test-typescript.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@ jobs:
3636
cache-dependency-path: typescript/package-lock.json
3737
- run: npm ci
3838
- run: npm run build
39+
- run: npx vitest run tests/optimalPortfolioScenario.test.ts

‎.gitignore‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
.claude/settings.local.json
2-
.serena/
3-
.claude/settings.local.json
42
.claude/worktrees/
3+
.serena/

‎README.md‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22

33
## Release
44

5-
Kick the [release action](https://github.com/folio-sec/terraform-provider-zoom/actions/workflows/release.yml) manually, then release.
6-
7-
## Contribution
8-
9-
See also [CONTRIBUTING.md](CONTRIBUTING.md).
5+
Kick the [release action](https://github.com/folio-sec/wrap-api-example/actions/workflows/release.yml) manually, then release.
106

117
### DCO Sign-Off Methods
128

0 commit comments

Comments
 (0)