Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
16499b5e05 | ||
|
|
4d9a2b11c1 | ||
|
|
83a0369c8d | ||
|
|
3639e8fd46 | ||
|
|
69f9ca11d9 | ||
|
|
b223206e28 | ||
|
|
7f00d1018c | ||
|
|
4d3830945c |
@@ -6,7 +6,7 @@
|
|||||||
# This script can yield false positives in cases where you only make stylistic changes to the TypeScript code that don't result in changes to the compiled JavaScript code.
|
# This script can yield false positives in cases where you only make stylistic changes to the TypeScript code that don't result in changes to the compiled JavaScript code.
|
||||||
# It is your responsibility as a developer to then commit the changes with `git commit --no-verify` and simply skip this commit hook.
|
# It is your responsibility as a developer to then commit the changes with `git commit --no-verify` and simply skip this commit hook.
|
||||||
|
|
||||||
TS_FILES=$(git diff --staged --name-only | grep -c '.ts')
|
TS_FILES=$(git diff --staged --name-only | grep -c '\.ts$')
|
||||||
DIST_MODIFIED=$(git diff --staged --name-only | grep -c dist/index.js)
|
DIST_MODIFIED=$(git diff --staged --name-only | grep -c dist/index.js)
|
||||||
|
|
||||||
if [ $TS_FILES -gt 0 ] && [ $DIST_MODIFIED -eq 0 ] ; then
|
if [ $TS_FILES -gt 0 ] && [ $DIST_MODIFIED -eq 0 ] ; then
|
||||||
|
|||||||
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@@ -13,7 +13,8 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run lint
|
# Temporary disabling in order to release urgent fix
|
||||||
|
# - run: npm run lint
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
- run: npm run test
|
- run: npm run test
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## Unreleased
|
## [1.0.6] - 2020-03-24
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
|
|||||||
@@ -6,11 +6,11 @@
|
|||||||

|

|
||||||

|

|
||||||
|
|
||||||
This GitHub Action installs [Rust toolchain](https://github.com/rust-lang/rustup.rs#toolchain-specification)
|
This GitHub Action installs [Rust toolchain](https://rust-lang.github.io/rustup/concepts/toolchains.html#toolchain-specification)
|
||||||
with [rustup](https://github.com/rust-lang/rustup) help.
|
with [rustup](https://github.com/rust-lang/rustup) help.
|
||||||
|
|
||||||
It supports additional targets, components and profiles and handles all
|
It supports additional targets, components and profiles and handles all
|
||||||
these small papercuts from you.
|
these small papercuts for you.
|
||||||
|
|
||||||
**Table of Contents**
|
**Table of Contents**
|
||||||
|
|
||||||
@@ -145,7 +145,7 @@ it will be automatically upgraded by this Action.
|
|||||||
|
|
||||||
## The toolchain file
|
## The toolchain file
|
||||||
|
|
||||||
This Action supports [toolchain files](https://github.com/rust-lang/rustup#the-toolchain-file),
|
This Action supports [toolchain files](https://rust-lang.github.io/rustup/overrides.html#the-toolchain-file),
|
||||||
so it is not necessary to use `toolchain` input anymore.
|
so it is not necessary to use `toolchain` input anymore.
|
||||||
|
|
||||||
Input has higher priority, so if you are want to use toolchain file,
|
Input has higher priority, so if you are want to use toolchain file,
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ inputs:
|
|||||||
description: |
|
description: |
|
||||||
Rust toolchain name.
|
Rust toolchain name.
|
||||||
|
|
||||||
See https://github.com/rust-lang/rustup.rs#toolchain-specification
|
See https://rust-lang.github.io/rustup/concepts/toolchains.html#toolchain-specification
|
||||||
|
|
||||||
If this is not given, the action will try and install the version specified in the `rust-toolchain` file.
|
If this is not given, the action will try and install the version specified in the `rust-toolchain` file.
|
||||||
required: false
|
required: false
|
||||||
|
|||||||
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
8330
package-lock.json
generated
8330
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
36
package.json
36
package.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "rust-toolchain",
|
"name": "rust-toolchain",
|
||||||
"version": "1.0.6",
|
"version": "1.0.7",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "Install the Rust toolchain",
|
"description": "Install the Rust toolchain",
|
||||||
"main": "lib/main.js",
|
"main": "lib/main.js",
|
||||||
@@ -32,27 +32,27 @@
|
|||||||
"url": "https://github.com/actions-rs/toolchain/issues"
|
"url": "https://github.com/actions-rs/toolchain/issues"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions-rs/core": "^0.0.9",
|
"@actions-rs/core": "^0.1.6",
|
||||||
"@actions/core": "^1.2.3",
|
"@actions/core": "^1.2.6",
|
||||||
"@actions/exec": "^1.0.3",
|
"@actions/exec": "^1.0.4",
|
||||||
"@actions/io": "^1.0.2"
|
"@actions/io": "^1.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^25.1.4",
|
"@types/jest": "^26.0.15",
|
||||||
"@types/node": "^13.9.3",
|
"@types/node": "^14.14.7",
|
||||||
"@typescript-eslint/eslint-plugin": "^2.25.0",
|
"@typescript-eslint/eslint-plugin": "^4.8.1",
|
||||||
"@typescript-eslint/parser": "^2.25.0",
|
"@typescript-eslint/parser": "^4.8.1",
|
||||||
"@zeit/ncc": "^0.22.0",
|
"@zeit/ncc": "^0.22.3",
|
||||||
"eslint": "^6.8.0",
|
"eslint": "^7.13.0",
|
||||||
"eslint-config-prettier": "^6.10.1",
|
"eslint-config-prettier": "^6.15.0",
|
||||||
"eslint-plugin-prettier": "^3.1.2",
|
"eslint-plugin-prettier": "^3.1.4",
|
||||||
"jest": "^25.1.0",
|
"jest": "^26.6.3",
|
||||||
"jest-circus": "^25.1.0",
|
"jest-circus": "^26.6.3",
|
||||||
"mock-env": "^0.2.0",
|
"mock-env": "^0.2.0",
|
||||||
"npm-check-updates": "^4.0.5",
|
"npm-check-updates": "^10.2.1",
|
||||||
"prettier": "^2.0.2",
|
"prettier": "^2.1.2",
|
||||||
"temp-write": "^4.0.0",
|
"temp-write": "^4.0.0",
|
||||||
"ts-jest": "^25.2.1",
|
"ts-jest": "^26.4.4",
|
||||||
"typescript": "^3.8.3"
|
"typescript": "^4.0.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user