Skip to content

Commit

Permalink
leto-modelizer Thu Oct 26 2023
Browse files Browse the repository at this point in the history
  • Loading branch information
LetoModelizer authored and LetoModelizer committed Oct 26, 2023
1 parent 33bd16a commit 30efc8e
Show file tree
Hide file tree
Showing 4 changed files with 139 additions and 15 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.14
- name: Setup npm
run: npm install -g [email protected]
- uses: actions/cache/restore@v3
with:
path: node_modules
key: ${{ runner.os }}-build-cache-node-modules-${{ hashFiles('./package-lock.json') }}
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.14
- name: Run unit tests
run: export NODE_OPTIONS=--max_old_space_size=8192 && npm run test
- name: Upload line coverage report
Expand Down Expand Up @@ -128,7 +128,6 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: Download line coverage report
uses: actions/download-artifact@v3
Expand Down Expand Up @@ -156,14 +155,14 @@ jobs:
path: node_modules
key: ${{ runner.os }}-build-cache-node-modules-${{ hashFiles('./package-lock.json') }}
- name: Build application
run: |
npm install -g [email protected] && \
npm ci && \
npm run plugin:install -- repository-name="githubator-plugin" repository-url="https://github.com/ditrit/githubator-plugin.git#0.2.5" && \
npm run plugin:install -- repository-name="terrator-plugin" repository-url="https://github.com/ditrit/terrator-plugin.git#0.7.0" && \
npm run plugin:init && \
docker build -t leto-modelizer -f DockerfileE2E .
run: npm install -g [email protected] && \
npm ci && \
npm run plugin:install -- repository-name="githubator-plugin" repository-url="https://github.com/ditrit/githubator-plugin.git#0.2.5" && \
npm run plugin:install -- repository-name="terrator-plugin" repository-url="https://github.com/ditrit/terrator-plugin.git#0.7.0" && \
npm run plugin:init && \
docker build -t leto-modelizer -f DockerfileE2E .

- name: Run application
run: docker run -p 8080:80 -d leto-modelizer
- name: Run functional tests
run: npm run test:e2e
run: npm run test:e2e
13 changes: 13 additions & 0 deletions .github/workflows/test CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Test CI

on:
pull_request:
types: [synchronized, opened]

jobs:
job_1:
name: Test Job
runs-on: ubuntu-latest
steps:
- name: echo step
run: echo 'Workflow started'
106 changes: 104 additions & 2 deletions leto-modelizer.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@
".github/workflows/CI.yml": {
"githubator-plugin": {
"workflow_1": {
"x": -428.9666748046875,
"y": 0.1168212890625,
"x": -1165.4167404174805,
"y": -354.5368194580078,
"width": 3345,
"height": 1890,
"needsResizing": false,
Expand Down Expand Up @@ -640,5 +640,107 @@
"manuallyResized": false
}
}
},
".github/workflows": {
"githubator-plugin": {
"workflow_1": {
"x": 199,
"y": 259,
"width": 250,
"height": 480,
"needsResizing": false,
"needsPositioning": false,
"manuallyResized": false
},
"trigger_1": {
"x": 30,
"y": 30,
"width": 110,
"height": 80,
"needsResizing": false,
"needsPositioning": false,
"manuallyResized": false
},
"job_1": {
"x": 30,
"y": 140,
"width": 185,
"height": 225,
"needsResizing": false,
"needsPositioning": false,
"manuallyResized": false
},
"step_1": {
"x": 30,
"y": 30,
"width": 110,
"height": 80,
"needsResizing": false,
"needsPositioning": false,
"manuallyResized": false
}
}
},
"": {
"terrator-plugin": {
"aws_s3_bucket": {
"x": 30,
"y": 30,
"width": 110,
"height": 80,
"needsResizing": false,
"needsPositioning": false,
"manuallyResized": false
},
"aws_s3_bucket_acl": {
"x": 180,
"y": 30,
"width": 110,
"height": 80,
"needsResizing": false,
"needsPositioning": false,
"manuallyResized": false
}
}
},
".github/workflows/test CI.yml": {
"githubator-plugin": {
"workflow_1": {
"x": 199,
"y": 259,
"width": 250,
"height": 480,
"needsResizing": false,
"needsPositioning": false,
"manuallyResized": false
},
"trigger_1": {
"x": 30,
"y": 30,
"width": 110,
"height": 80,
"needsResizing": false,
"needsPositioning": false,
"manuallyResized": false
},
"job_1": {
"x": 30,
"y": 140,
"width": 185,
"height": 225,
"needsResizing": false,
"needsPositioning": false,
"manuallyResized": false
},
"step_1": {
"x": 30,
"y": 30,
"width": 110,
"height": 80,
"needsResizing": false,
"needsPositioning": false,
"manuallyResized": false
}
}
}
}
10 changes: 10 additions & 0 deletions test s3main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
resource "aws_s3_bucket" "aws_s3_bucket" {
bucket = "bucket"
}

resource "aws_s3_bucket_acl" "aws_s3_bucket_acl" {
bucket = [
aws_s3_bucket.aws_s3_bucket.id,
]
acl = "private"
}

0 comments on commit 30efc8e

Please sign in to comment.