Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylvln committed Jan 18, 2022
0 parents commit 89b6be4
Show file tree
Hide file tree
Showing 28 changed files with 16,047 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"projectName": "gcs-cache-action",
"projectOwner": "MansaGroup",
"repoType": "github",
"repoHost": "https://github.com",
"files": [
"README.md"
],
"imageSize": 100,
"commit": true,
"commitConvention": "angular",
"contributors": [
{
"login": "IamBlueSlime",
"name": "Jérémy Levilain",
"avatar_url": "https://avatars.githubusercontent.com/u/6763873?v=4",
"profile": "https://jeremylvln.fr/",
"contributions": [
"code",
"ideas"
]
}
],
"contributorsPerLine": 7
}
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Editor configuration, see http://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
max_line_length = off
trim_trailing_whitespace = false
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dist/
lib/
node_modules/
82 changes: 82 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{
"root": true,
"overrides": [
{
"files": ["*.ts", "*.js"],
"extends": [
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:sonarjs/recommended",
"plugin:import/recommended",
"plugin:import/typescript"
],
"env": {
"node": true,
"es6": true
},
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": [
"@typescript-eslint",
"sonarjs",
"import",
"eslint-plugin-import-helpers",
"unused-imports"
],
"rules": {
"import-helpers/order-imports": [
"error",
{
"newlinesBetween": "always",
"groups": ["module", ["parent", "sibling", "index"]],
"alphabetize": {
"order": "asc",
"ignoreCase": true
}
}
],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_",
"ignoreRestSiblings": true
}
],
"unused-imports/no-unused-imports-ts": ["error"],
"unused-imports/no-unused-vars-ts": [
"warn",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_",
"ignoreRestSiblings": true
}
],
"jsdoc/require-param-type": "off",
"jsdoc/require-returns-type": "off",
"jsdoc/require-jsdoc": "off"
}
},
{
"files": ["*.*spec.ts"],
"plugins": ["jest"],
"env": {
"jest/globals": true
},
"rules": {
"@typescript-eslint/unbound-method": "off",
"sonarjs/no-duplicate-string": "warn"
}
},
{
"files": ["*.ts", "*.js", "*.md", "*.yml", "*.yaml", "*.json"],
"extends": ["plugin:prettier/recommended"],
"plugins": ["prettier"]
}
]
}
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist/** -diff linguist-generated=true
28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: 'Bug Report'
about: "Something isn't working as expected."
title: ''
labels:
- type:bug :beetle:
assignees: ''
---

## Bug Report

## Current behavior

<!-- Describe how the issue manifests. -->

## Expected behavior

<!-- A clear and concise description of what you expected to happen (or code). -->

## Possible Solution

<!--- Only if you have suggestions on a fix for the bug -->

---

**Others:**

<!-- Anything else relevant? Operating system version, IDE, package manager, ... -->
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: 'Feature Request'
about: 'This is something we may need.'
title: ''
labels:
- type:feature :rocket:
assignees: ''
---

## Feature Request

## Is your feature request related to a problem? Please describe.

<!-- A clear and concise description of what the problem is. Ex. I have an issue when [...] -->

## Describe the solution you'd like

<!-- A clear and concise description of what you want to happen. Add any considered drawbacks. -->

## Teachability, Documentation, Adoption, Migration Strategy

<!-- If you can, explain how users will be able to use this and possibly write out a version of the docs. Maybe a screenshot or design? -->

## What is the motivation/use case for changing the behavior?

<!-- Describe the motivation or the concrete use case. -->
48 changes: 48 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
## PR Checklist

Please check if your PR fulfills the following requirements:

```
- [ ] The commit message follows our guidelines
- [ ] Tests for the changes have been added (if applicable)
- [ ] Docs have been added / updated (if applicable)
```

## PR Type

What kind of change does this PR introduce?

<!-- Please check the one that applies to this PR using "x". -->

```
- [ ] Bugfix
- [ ] Feature
- [ ] Code style update (formatting, local variables)
- [ ] Refactoring (no functional changes, no api changes)
- [ ] Build related changes
- [ ] CI related changes
- [ ] Other... Please describe:
```

## What is the current behavior

<!-- Please describe the current behavior that you are modifying or link to a relevant issue. -->

Issue Number fixed #n/a

## What is the new behavior

<!-- Please describe the new behavior that you are submitting. Code samples appreciated. -->

## Does this PR introduce a breaking change

<!-- Please check the one that applies to this PR using "x". -->

```
- [ ] Yes
- [ ] No
```

<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->

## Other information
23 changes: 23 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"extends": ["config:base"],
"automerge": true,
"dependencyDashboard": false,
"enabledManagers": ["github-actions", "npm"],
"labels": ["type:dependencies :wrench:"],
"node": {
"supportPolicy": ["lts_latest"]
},
"prCreation": "not-pending",
"reviewersFromCodeOwners": false,
"stabilityDays": 3,
"updateNotScheduled": false,
"vulnerabilityAlerts": {
"labels": ["priority:critical :fire:"]
},
"packageRules": [
{
"matchDepTypes": ["devDependencies"],
"prPriority": -1
}
]
}
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: 'ci'

on:
pull_request:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

test:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Run tests
uses: ./

lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install dependencies
run: npm ci

- name: Build
run: npm run lint
Loading

0 comments on commit 89b6be4

Please sign in to comment.