-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
LetoModelizer
authored and
LetoModelizer
committed
Oct 26, 2023
1 parent
33bd16a
commit 30efc8e
Showing
4 changed files
with
139 additions
and
15 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 |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 |
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,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' |
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 |
---|---|---|
@@ -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" | ||
} |