-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolved from failing tests from merged PRs in v1.4.0 (#1335)
* Bump version up a minor release since we are removing some deprecated dependencies * Removed some controller tests that rely on a lib we don't use any more * Made the PG version more consistent across shard.yml versions * Changed CI to use CircleCI and started to configure the tests * Added other workflows to start testing everything being a little more broken up, hopefully this makes finding failing tests easier * Fixed where the folder for the test results is made and removed vim * Fixed Copilot error in the naming of the granite build spec * Bumped version to the new patch release * Fixed failing generator spec * Fixed responses for application/json including charset=utf-8 even if it's not included in the Accept header * Changes the static file handler to be more similar to the std lib - Defaults to _not_ listing directory contents - Adjusted some of the tests to reflect behavior from the std lib when a directory is requested but does not have the trailing / * Disabled the granite specs due to parallel but separate work that is required to maintain Granite which is going to require it's own release
- Loading branch information
1 parent
6fe2576
commit f844da3
Showing
10 changed files
with
135 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
version: 2.1 | ||
|
||
jobs: | ||
ameba-test: | ||
resource_class: medium | ||
docker: | ||
- image: crystallang/crystal:1.9.2 | ||
|
||
working_directory: ~/amber | ||
steps: | ||
- run: | ||
name: Install missing dependencies | ||
command: | | ||
apt-get update -qq && apt-get install -y libpq-dev libsqlite3-dev libmysqlclient-dev libreadline-dev curl | ||
- checkout | ||
- restore_cache: | ||
name: Restore Shards Cache | ||
keys: | ||
- shards-cache | ||
- run: | ||
name: shards install | ||
command: shards install | ||
- save_cache: | ||
key: shards-cache | ||
paths: | ||
- lib | ||
- run: | ||
name: Running Ameba | ||
command: ./bin/ameba | ||
|
||
granite-test: | ||
resource_class: medium | ||
docker: | ||
- image: crystallang/crystal:1.9.2 | ||
|
||
working_directory: ~/amber | ||
steps: | ||
- run: | ||
name: Install missing dependencies | ||
command: | | ||
apt-get update -qq && apt-get install -y libpq-dev libsqlite3-dev libmysqlclient-dev libreadline-dev curl | ||
- checkout | ||
- run: | ||
name: Create test results folder | ||
command: | | ||
mkdir ~/amber/test-results | ||
- restore_cache: | ||
name: Restore Shards Cache | ||
keys: | ||
- shards-cache | ||
- run: | ||
name: shards install | ||
command: shards install | ||
- save_cache: | ||
key: shards-cache | ||
paths: | ||
- lib | ||
- run: | ||
name: Running Granite Build Spec1 | ||
command: crystal spec spec/build_spec_granite.cr --junit_output ~/amber/test-results/granite-build-spec.xml | ||
|
||
- store_test_results: | ||
path: ~/amber/test-results | ||
|
||
amber-specs: | ||
resource_class: medium | ||
docker: | ||
- image: crystallang/crystal:1.9.2 | ||
|
||
working_directory: ~/amber | ||
steps: | ||
- run: | ||
name: Install missing dependencies | ||
command: | | ||
apt-get update -qq && apt-get install -y libpq-dev libsqlite3-dev libmysqlclient-dev libreadline-dev curl | ||
- checkout | ||
- run: | ||
name: Create test results folder | ||
command: | | ||
mkdir ~/amber/test-results | ||
- restore_cache: | ||
name: Restore Shards Cache | ||
keys: | ||
- shards-cache | ||
- run: | ||
name: shards install | ||
command: shards install | ||
- save_cache: | ||
key: shards-cache | ||
paths: | ||
- lib | ||
- run: | ||
name: Running Amber specs | ||
command: crystal spec --junit_output ~/amber/test-results/amber-specs.xml | ||
|
||
- store_test_results: | ||
path: ~/amber/test-results | ||
|
||
|
||
workflows: | ||
version: 2 | ||
amber: | ||
jobs: | ||
- ameba-test | ||
- amber-specs | ||
- granite-test | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: amber | ||
|
||
version: 1.3.2 | ||
version: 1.4.1 | ||
|
||
authors: | ||
- Amber Team and Contributors <amberframework.org> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.