-
-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #209 from ageddesi/dev
v.0.14.0 candidate
- Loading branch information
Showing
71 changed files
with
4,507 additions
and
2,832 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
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,89 @@ | ||
# This workflow was added by CodeSee. Learn more at https://codesee.io/ | ||
on: | ||
push: | ||
branches: | ||
- dev | ||
pull_request_target: | ||
types: [opened, synchronize, reopened] | ||
|
||
name: CodeSee Map | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
test_map_action: | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
name: Run CodeSee Map Analysis | ||
steps: | ||
- name: checkout | ||
id: checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
|
||
# codesee-detect-languages has an output with id languages. | ||
- name: Detect Languages | ||
id: detect-languages | ||
uses: Codesee-io/codesee-detect-languages-action@latest | ||
|
||
- name: Configure JDK 16 | ||
uses: actions/setup-java@v3 | ||
if: ${{ fromJSON(steps.detect-languages.outputs.languages).java }} | ||
with: | ||
java-version: '16' | ||
distribution: 'zulu' | ||
|
||
# CodeSee Maps Go support uses a static binary so there's no setup step required. | ||
|
||
- name: Configure Node.js 14 | ||
uses: actions/setup-node@v3 | ||
if: ${{ fromJSON(steps.detect-languages.outputs.languages).javascript }} | ||
with: | ||
node-version: '14' | ||
|
||
- name: Configure Python 3.x | ||
uses: actions/setup-python@v4 | ||
if: ${{ fromJSON(steps.detect-languages.outputs.languages).python }} | ||
with: | ||
python-version: '3.10' | ||
architecture: 'x64' | ||
|
||
- name: Configure Ruby '3.x' | ||
uses: ruby/setup-ruby@v1 | ||
if: ${{ fromJSON(steps.detect-languages.outputs.languages).ruby }} | ||
with: | ||
ruby-version: '3.0' | ||
|
||
# We need the rust toolchain because it uses rustc and cargo to inspect the package | ||
- name: Configure Rust 1.x stable | ||
uses: actions-rs/toolchain@v1 | ||
if: ${{ fromJSON(steps.detect-languages.outputs.languages).rust }} | ||
with: | ||
toolchain: stable | ||
|
||
- name: Generate Map | ||
id: generate-map | ||
uses: Codesee-io/codesee-map-action@latest | ||
with: | ||
step: map | ||
api_token: ${{ secrets.CODESEE_ARCH_DIAG_API_TOKEN }} | ||
github_ref: ${{ github.ref }} | ||
languages: ${{ steps.detect-languages.outputs.languages }} | ||
|
||
- name: Upload Map | ||
id: upload-map | ||
uses: Codesee-io/codesee-map-action@latest | ||
with: | ||
step: mapUpload | ||
api_token: ${{ secrets.CODESEE_ARCH_DIAG_API_TOKEN }} | ||
github_ref: ${{ github.ref }} | ||
|
||
- name: Insights | ||
id: insights | ||
uses: Codesee-io/codesee-map-action@latest | ||
with: | ||
step: insights | ||
api_token: ${{ secrets.CODESEE_ARCH_DIAG_API_TOKEN }} | ||
github_ref: ${{ github.ref }} |
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,17 @@ | ||
name: pull-request | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
- name: Set up node | ||
uses: actions/setup-node@v3 | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Run tests | ||
run: npm test |
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 |
---|---|---|
|
@@ -5,3 +5,4 @@ npm-debug.log | |
.env | ||
.DS_Store | ||
.idea | ||
coverage |
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 @@ | ||
{ | ||
"eslint.alwaysShowStatus": true, | ||
"eslint.format.enable": true, | ||
"eslint.lintTask.enable": true, | ||
"eslint.useESLintClass": false, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
}, | ||
"eslint.validate": ["javascript"] | ||
} |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM node:12-alpine | ||
FROM node:18-alpine | ||
WORKDIR /src | ||
COPY package.json package-lock.json /src/ | ||
RUN npm install | ||
|
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
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
/** @type {import('ts-jest').JestConfigWithTsJest} */ | ||
module.exports = { | ||
preset: 'ts-jest', | ||
testEnvironment: 'node' | ||
testEnvironment: 'node', | ||
collectCoverage: true, | ||
coverageReporters: ['json', 'html', 'text', 'text-summary'] | ||
} |
Oops, something went wrong.