Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies, readme and changelog #257

Merged
merged 7 commits into from
Nov 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 26 additions & 17 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,38 +7,47 @@ module.exports = {
root: true,
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint"
"prettier"
],
parser: "@typescript-eslint/parser",
parserOptions: {
project: "tsconfig.json"
project: [
"tsconfig.json",
"tsconfig.eslint.json"
]
},
plugins: ["@typescript-eslint"],
rules: {
"@typescript-eslint/no-floating-promises": ["error", { ignoreVoid: true }],
"@typescript-eslint/interface-name-prefix": [
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/naming-convention": [
"error",
{ prefixWithI: "always" }
{
"selector": "interface",
"format": ["PascalCase"],
"custom": {
"regex": "^I[A-Z]",
"match": true
}
}
],
"@typescript-eslint/no-unused-vars": ["warn", { args: "none" }],
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-floating-promises": ["error", { ignoreVoid: true }],
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/ban-ts-ignore": "warn",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": ["warn", { args: "none" }],
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/triple-slash-reference": "warn",
"@typescript-eslint/no-inferrable-types": "off",
"no-case-declarations": "warn",
"no-control-regex": "warn",
"no-inner-declarations": "off",
"no-prototype-builtins": "off",
"no-control-regex": "warn",
"no-undef": "warn",
"no-case-declarations": "warn",
"no-unused-vars": "off",
"no-useless-escape": "off",
"prefer-const": "off"
}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/caching-envs-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- "*"
push:
branches:
- "develop"
- "main"
- "master"
schedule:
# Note that cronjobs run on master/main by default
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/caching-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- "*"
push:
branches:
- "develop"
- "main"
- "master"
schedule:
# Note that cronjobs run on master/main by default
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/example-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- "*"
push:
branches:
- "develop"
- "main"
- "master"
schedule:
# Note that cronjobs run on master/main by default
Expand All @@ -23,7 +25,7 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.7", "2.7"]
python-version: ["3.8", "2.7"]
steps:
- uses: actions/checkout@v2
- uses: ./
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/example-10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- "*"
push:
branches:
- "develop"
- "main"
- "master"
schedule:
# Note that cronjobs run on master/main by default
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/example-11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- "*"
push:
branches:
- "develop"
- "main"
- "master"
schedule:
# Note that cronjobs run on master/main by default
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/example-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- "*"
push:
branches:
- "develop"
- "main"
- "master"
schedule:
# Note that cronjobs run on master/main by default
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/example-3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- "*"
push:
branches:
- "develop"
- "main"
- "master"
schedule:
# Note that cronjobs run on master/main by default
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/example-4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- "*"
push:
branches:
- "develop"
- "main"
- "master"
schedule:
# Note that cronjobs run on master/main by default
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/example-5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- "*"
push:
branches:
- "develop"
- "main"
- "master"
schedule:
# Note that cronjobs run on master/main by default
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/example-6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- "*"
push:
branches:
- "develop"
- "main"
- "master"
schedule:
# Note that cronjobs run on master/main by default
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/example-7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- "*"
push:
branches:
- "develop"
- "main"
- "master"
schedule:
# Note that cronjobs run on master/main by default
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/example-8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- "*"
push:
branches:
- "develop"
- "main"
- "master"
schedule:
# Note that cronjobs run on master/main by default
Expand All @@ -23,7 +25,7 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.7", "2.7"]
python-version: ["3.8", "2.7"]
steps:
- uses: actions/checkout@v2
- uses: ./
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/example-9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- "*"
push:
branches:
- "develop"
- "main"
- "master"
schedule:
# Note that cronjobs run on master/main by default
Expand All @@ -23,7 +25,7 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.7", "2.7"]
python-version: ["3.8", "2.7"]
steps:
- uses: actions/checkout@v2
- uses: ./
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- "*"
push:
branches:
- "develop"
- "main"
- "master"
schedule:
# Note that cronjobs run on master/main by default
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/regression-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- "*"
push:
branches:
- "develop"
- "main"
- "master"
schedule:
# Note that cronjobs run on master/main by default
Expand Down
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run format && npm run check && npm run build
50 changes: 50 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,55 @@
# CHANGELOG

## [v2.2.0] (2021-11-11)

### Documentation

- [#187] Document missing bundled conda for self hosted runners
- [#200] Provided instructions on how to cache deployed environments for
Miniforge variants.
- [#246] Fix broken link in README.
- [#251] Fix typo in README.
- [#256] Update bash commands to include error flag.

### Features

- [#234] Add input option (`run-post: false`) to skip post processing.

### Fixes

- [#189] Error on miniconda-version _not_ specified instead of when it _is_
specified.
- [#190] Add regression checks for pinning python version in the created
environment.
- [#209] Do not move non-existing files.
- [#212] Fix caching example. No need to hardcode paths. Write date to step
output.
- [#230] Fix path handling inconsistency in installer caching.

### Tasks and Maintenance

- [#210] Use 'npm run ...' to run scripts.
- [#233] Add deprecation warning on `master` branch.
- [#252] use Node.js 16 instead of deprecated Node.js 12
- [#257] Update dependencies.

[v2.2.0]: https://github.com/conda-incubator/setup-miniconda/releases/tag/v2.2.0
[#187]: https://github.com/conda-incubator/setup-miniconda/pull/187
[#189]: https://github.com/conda-incubator/setup-miniconda/pull/189
[#190]: https://github.com/conda-incubator/setup-miniconda/pull/190
[#200]: https://github.com/conda-incubator/setup-miniconda/pull/200
[#209]: https://github.com/conda-incubator/setup-miniconda/pull/209
[#210]: https://github.com/conda-incubator/setup-miniconda/pull/210
[#212]: https://github.com/conda-incubator/setup-miniconda/pull/212
[#230]: https://github.com/conda-incubator/setup-miniconda/pull/230
[#233]: https://github.com/conda-incubator/setup-miniconda/pull/233
[#234]: https://github.com/conda-incubator/setup-miniconda/pull/234
[#246]: https://github.com/conda-incubator/setup-miniconda/pull/246
[#251]: https://github.com/conda-incubator/setup-miniconda/pull/251
[#252]: https://github.com/conda-incubator/setup-miniconda/pull/252
[#256]: https://github.com/conda-incubator/setup-miniconda/pull/256
[#257]: https://github.com/conda-incubator/setup-miniconda/pull/257

## [v2.1.1] (2021-03-31)

### Features
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ We use NodeJS version 16 for now.

```bash
conda create -n github-action nodejs=16 -c conda-forge
conda activate
```

- Install NodeJS dependencies:
Expand Down
Loading