Skip to content

Commit

Permalink
Merge commit '36b5148f57a02f909aa6e7420ac66ebc6b71b0e4' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 21, 2021
2 parents b451c91 + 36b5148 commit b332caa
Show file tree
Hide file tree
Showing 43 changed files with 871 additions and 521 deletions.
14 changes: 14 additions & 0 deletions .editorconfig
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

8 changes: 0 additions & 8 deletions .github/dependabot.yml

This file was deleted.

187 changes: 187 additions & 0 deletions .github/workflows/CI.yml
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
1 change: 1 addition & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- v[0-9]+.[0-9x]+.x
pull_request:

jobs:
Expand Down
19 changes: 15 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
tag:
description: 'Tag'
required: true
releaseBranch:
description: 'Release branch'
required: true
default: 'release'

jobs:
release:
Expand All @@ -16,9 +20,16 @@ jobs:
with:
fetch-depth: 0

- uses: dealmore/gh-action-release-branch@v1.1.0
- uses: milliHQ/gh-action-release-branch@v2.0.0
with:
upstream-branch: main
release-branch: release
release-branch: ${{ github.event.inputs.releaseBranch }}
release-tag: ${{ github.event.inputs.tag }}
exclude: '["packages/**/*", "test/**/*", "package.json", "yarn.lock"]'
exclude: |
.vscode/**/*
packages/**/*
test/**/*
docker-compose.yml
jest.config.js
package.json
tsconfig.json
yarn.lock
104 changes: 0 additions & 104 deletions .github/workflows/test.yml

This file was deleted.

10 changes: 6 additions & 4 deletions .github/workflows/tf-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,11 @@ node_modules

# Temp files
*.swp*

# Log files
*.log

# direnv
.direnv
.envrc

Loading

0 comments on commit b332caa

Please sign in to comment.