-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit '36b5148f57a02f909aa6e7420ac66ebc6b71b0e4' into release
- Loading branch information
Showing
43 changed files
with
871 additions
and
521 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,14 @@ | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,187 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- v[0-9]+.[0-9x]+.x | ||
pull_request: | ||
|
||
env: | ||
NEXT_TELEMETRY_DISABLED: 1 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: registry.gitlab.com/dealmore/dealmore-build-images/lambda:nodejs14.x | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
.yarn | ||
**/node_modules | ||
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }} | ||
|
||
- name: Install dependencies | ||
run: yarn --frozen-lockfile --cache-folder .yarn | ||
|
||
- name: Build runtime | ||
run: yarn workspace @millihq/tf-next-runtime build | ||
|
||
- name: Build tf-next | ||
run: yarn workspace tf-next build | ||
|
||
- name: Build proxy | ||
run: yarn workspace @millihq/terraform-next-proxy build | ||
|
||
- name: Build deploy-trigger | ||
run: yarn workspace @millihq/terraform-next-deploy-trigger build | ||
|
||
- name: Upload build artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: dist | ||
path: | | ||
packages/runtime/dist/ | ||
packages/tf-next/dist/ | ||
packages/proxy/dist.zip | ||
packages/deploy-trigger/dist.zip | ||
if-no-files-found: error | ||
|
||
test-integration: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
container: registry.gitlab.com/dealmore/dealmore-build-images/lambda:nodejs14.x | ||
services: | ||
s3: | ||
image: registry.gitlab.com/dealmore/dealmore-build-images:s3-emulator | ||
env: | ||
MINIO_ACCESS_KEY: test | ||
MINIO_SECRET_KEY: testtest | ||
|
||
env: | ||
MINIO_ACCESS_KEY: test | ||
MINIO_SECRET_KEY: testtest | ||
S3_ENDPOINT: s3:9000 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
.yarn | ||
**/node_modules | ||
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }} | ||
|
||
- name: Yarn install | ||
run: yarn --frozen-lockfile --cache-folder .yarn | ||
|
||
- name: Download build artifacts | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: dist | ||
path: packages | ||
|
||
- name: Jest | ||
run: yarn test | ||
|
||
test-e2e-prepare: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
container: registry.gitlab.com/dealmore/dealmore-build-images/lambda:nodejs14.x | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
.yarn | ||
**/node_modules | ||
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }} | ||
|
||
- name: Yarn install | ||
run: yarn --frozen-lockfile --cache-folder .yarn | ||
|
||
- name: Download build artifacts | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: dist | ||
path: packages | ||
|
||
- name: Build e2e fixtures | ||
run: yarn test:e2e:prepare | ||
|
||
- name: Upload e2e fixtures | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: e2e-fixtures | ||
path: test/fixtures/**/.next-tf/**/* | ||
if-no-files-found: error | ||
|
||
test-e2e: | ||
needs: [build, test-e2e-prepare] | ||
runs-on: ubuntu-latest | ||
services: | ||
s3: | ||
image: registry.gitlab.com/dealmore/dealmore-build-images:s3-emulator | ||
env: | ||
MINIO_ACCESS_KEY: test | ||
MINIO_SECRET_KEY: testtest | ||
ports: | ||
- 9000:9000 | ||
env: | ||
SAM_CLI_TELEMETRY: 0 | ||
# Don't worry these are fake AWS credentials for AWS SAM | ||
AWS_ACCESS_KEY_ID: ABIAZLJNBT8I3KFOU4NO | ||
AWS_SECRET_ACCESS_KEY: 4Xt3Rbx4DO21MhK1IHXZXRvVRDuqaQ0Wo5lILA/h | ||
MINIO_ACCESS_KEY: test | ||
MINIO_SECRET_KEY: testtest | ||
|
||
steps: | ||
- name: Setup AWS SAM | ||
run: | | ||
brew tap aws/tap | ||
brew install aws-sam-cli | ||
sam --version | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
.yarn | ||
**/node_modules | ||
key: ${{ runner.os }}-e2e-${{ hashFiles('yarn.lock') }} | ||
|
||
- name: Download build artifacts | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: dist | ||
path: packages | ||
|
||
- name: Download prebuilt e2e fixtures | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: e2e-fixtures | ||
path: test/fixtures | ||
|
||
- name: Install dependencies | ||
run: yarn --frozen-lockfile --cache-folder .yarn | ||
|
||
- name: Run e2e-test | ||
run: yarn test:e2e --runInBand | ||
|
||
- name: Output SAM logs | ||
run: | | ||
printf "\n\nOutput of sam-local.log:\n" | ||
cat sam-local.log | ||
printf "\n\nOutput of sam-api.log:\n" | ||
cat sam-api.log |
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ on: | |
push: | ||
branches: | ||
- main | ||
- v[0-9]+.[0-9x]+.x | ||
pull_request: | ||
|
||
jobs: | ||
|
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,15 +7,17 @@ on: | |
push: | ||
branches: | ||
- main | ||
- v[0-9]+.[0-9x]+.x | ||
|
||
jobs: | ||
update-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Update Terraform docs in README | ||
uses: Dirrk/terraform-docs@v1.0.8 | ||
uses: terraform-docs/[email protected] | ||
with: | ||
tf_docs_output_file: README.md | ||
tf_docs_git_push: 'true' | ||
tf_docs_git_commit_message: 'terraform-docs: Update' | ||
config-file: '.terraform-docs.yml' | ||
output-file: README.md | ||
git-push: 'true' | ||
git-commit-message: 'docs: Update Terraform docs' |
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 |
---|---|---|
|
@@ -12,3 +12,11 @@ node_modules | |
|
||
# Temp files | ||
*.swp* | ||
|
||
# Log files | ||
*.log | ||
|
||
# direnv | ||
.direnv | ||
.envrc | ||
|
Oops, something went wrong.