Skip to content

Commit 8033c11

Browse files
authored
Merge pull request #85 from amplify-education/feature/AT-8360-improve
General improvements
2 parents 82496cc + cf6ea5a commit 8033c11

File tree

6 files changed

+2292
-8242
lines changed

6 files changed

+2292
-8242
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
- name: Get latest tag
2929
id: get_latest_tag
3030
uses: actions-ecosystem/action-get-latest-tag@v1
31+
with:
32+
initial_version: 'v${{ steps.extract_version.outputs.version }}'
3133

3234
- name: See if version changed
3335
run: |
@@ -48,7 +50,7 @@ jobs:
4850
uses: softprops/action-gh-release@v1
4951
with:
5052
tag_name: 'v${{ steps.extract_version.outputs.version }}'
51-
generate_release_notes: 1
53+
generate_release_notes: true
5254
env:
5355
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5456

CHANGELOG.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,25 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8-
## [Unreleased]
8+
## [3.1.0] - 2023-02-17
9+
10+
### Added
11+
12+
- Node version minimal requirements upgraded from 12.x to 14.x.
13+
- Upgraded aws-sdk, eslint, mocha, serverless, typescript and some other packages.
14+
- npm bin changed to npx because of first command's deprecation.
15+
16+
## [3.0.2] - 2023-02-09
17+
18+
### Added
19+
20+
- Github workflow adjustment
21+
22+
## [3.0.1] - 2022-02-28
23+
24+
### Added
25+
26+
- Fixes for build
927

1028
## [3.0.0] - 2022-02-03
1129

README.md

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,22 +59,41 @@ functions:
5959
```
6060

6161
## Running Tests
62+
To run unit tests:
63+
```
64+
npm run test
65+
```
6266

63-
To run the test:
64-
65-
```shell
66-
npm test
67+
For running integration tests you will need to log into you AWS account
68+
and set AWS_PROFILE environment variable,
69+
it will be used to create AWS entities for testing purposes
6770
```
71+
export AWS_PROFILE=<profile_name>
6872
69-
All tests should pass.
73+
npm run integration-test
74+
```
7075

71-
If there is an error update the node_module inside the serverless-log-forwarding folder:
76+
All tests should pass. All unit tests should pass before merging.
77+
Integration tests will probably take some time
7278

73-
```shell
79+
If there is an error update the node_modules inside the root folder of the directory:
80+
```
7481
npm install
7582
```
7683

84+
## Writing Integration Tests
85+
Unit tests are found in `test/unit-tests`.
86+
Integration tests are found in `test/integration-tests`.
87+
88+
`test/integration-tests` contains configs folder,
89+
for every test there is a folder with `serverless.yml` configuration and `logs_producer.py`.
90+
91+
To add another test create a folder for your test with the folder name that corresponds to test name
92+
and add code to run test to `test/integration-tests/integration-tests.ts`
93+
94+
7795
## Deploying
96+
7897
---------
7998
The plugin will be packaged with the lambda when deployed as normal using Serverless:
8099

0 commit comments

Comments
 (0)