Compare commits
10 Commits
Author | SHA1 | Date |
---|---|---|
|
88dc235639 | |
|
b3ea035039 | |
|
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.
|
||||
# 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)
|
||||
|
||||
if [ $TS_FILES -gt 0 ] && [ $DIST_MODIFIED -eq 0 ] ; then
|
||||
|
|
|
@ -13,7 +13,8 @@ jobs:
|
|||
|
||||
- uses: actions/checkout@v1
|
||||
- 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 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/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## Unreleased
|
||||
## [1.0.6] - 2020-03-24
|
||||
|
||||
### Added
|
||||
|
||||
|
|
12
README.md
12
README.md
|
@ -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.
|
||||
|
||||
It supports additional targets, components and profiles and handles all
|
||||
these small papercuts from you.
|
||||
these small papercuts for you.
|
||||
|
||||
**Table of Contents**
|
||||
|
||||
|
@ -58,11 +58,11 @@ See [additional recipes here](https://github.com/actions-rs/meta).
|
|||
|
||||
| Name | Required | Description | Type | Default |
|
||||
| ------------ | :------: | ----------------------------------------------------------------------------------------------------------------------------------------------------| ------ | --------|
|
||||
| `toolchain` | | [Toolchain](https://github.com/rust-lang/rustup.rs#toolchain-specification) name to use, ex. `stable`, `nightly`, `nightly-2019-04-20`, or `1.32.0` | string | |
|
||||
| `toolchain` | | [Toolchain](https://github.com/rust-lang/rustup.rs#toolchain-specification) name to use, ex. `stable`, `nightly`, `nightly-2019-04-20`, or `1.32.0` | string | stable |
|
||||
| `target` | | Additionally install specified target for this toolchain, ex. `x86_64-apple-darwin` | string | |
|
||||
| `default` | | Set installed toolchain as a default toolchain | bool | false |
|
||||
| `override` | | Set installed toolchain as an override for the current directory | bool | false |
|
||||
| `profile` | | Execute `rustup set profile {value}` before installing the toolchain, ex. `minimal` | string | |
|
||||
| `profile` | | Execute `rustup set profile {value}` before installing the toolchain, ex. `minimal` | string | default |
|
||||
| `components` | | Comma-separated list of the additional components to install, ex. `clippy, rustfmt` | string | |
|
||||
|
||||
Note: since `v1.0.4` version, `toolchain` input is not marked as required
|
||||
|
@ -79,7 +79,7 @@ Installed `rustc`, `cargo` and `rustup` versions can be fetched from the Action
|
|||
| `cargo` | Cargo version | `1.40.0 (bc8e4c8be 2019-11-22)` |
|
||||
| `rustup` | rustup version | `1.21.1 (7832b2ebe 2019-12-20)` |
|
||||
|
||||
Note: `rustc-hash` output value can be used with [actions/cache](https://github.com/actions/cache) Action
|
||||
Note: `rustc_hash` output value can be used with [actions/cache](https://github.com/actions/cache) Action
|
||||
to store cache for different Rust versions, as it is unique across different Rust versions and builds (including `nightly`).
|
||||
|
||||
## Profiles
|
||||
|
@ -145,7 +145,7 @@ it will be automatically upgraded by this Action.
|
|||
|
||||
## 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.
|
||||
|
||||
Input has higher priority, so if you are want to use toolchain file,
|
||||
|
|
|
@ -9,7 +9,7 @@ inputs:
|
|||
description: |
|
||||
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.
|
||||
required: false
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
36
package.json
36
package.json
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "rust-toolchain",
|
||||
"version": "1.0.6",
|
||||
"version": "1.0.7",
|
||||
"private": false,
|
||||
"description": "Install the Rust toolchain",
|
||||
"main": "lib/main.js",
|
||||
|
@ -32,27 +32,27 @@
|
|||
"url": "https://github.com/actions-rs/toolchain/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"@actions-rs/core": "^0.0.9",
|
||||
"@actions/core": "^1.2.3",
|
||||
"@actions/exec": "^1.0.3",
|
||||
"@actions-rs/core": "^0.1.6",
|
||||
"@actions/core": "^1.2.6",
|
||||
"@actions/exec": "^1.0.4",
|
||||
"@actions/io": "^1.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/jest": "^25.1.4",
|
||||
"@types/node": "^13.9.3",
|
||||
"@typescript-eslint/eslint-plugin": "^2.25.0",
|
||||
"@typescript-eslint/parser": "^2.25.0",
|
||||
"@zeit/ncc": "^0.22.0",
|
||||
"eslint": "^6.8.0",
|
||||
"eslint-config-prettier": "^6.10.1",
|
||||
"eslint-plugin-prettier": "^3.1.2",
|
||||
"jest": "^25.1.0",
|
||||
"jest-circus": "^25.1.0",
|
||||
"@types/jest": "^26.0.15",
|
||||
"@types/node": "^14.14.7",
|
||||
"@typescript-eslint/eslint-plugin": "^4.8.1",
|
||||
"@typescript-eslint/parser": "^4.8.1",
|
||||
"@zeit/ncc": "^0.22.3",
|
||||
"eslint": "^7.13.0",
|
||||
"eslint-config-prettier": "^6.15.0",
|
||||
"eslint-plugin-prettier": "^3.1.4",
|
||||
"jest": "^26.6.3",
|
||||
"jest-circus": "^26.6.3",
|
||||
"mock-env": "^0.2.0",
|
||||
"npm-check-updates": "^4.0.5",
|
||||
"prettier": "^2.0.2",
|
||||
"npm-check-updates": "^10.2.1",
|
||||
"prettier": "^2.1.2",
|
||||
"temp-write": "^4.0.0",
|
||||
"ts-jest": "^25.2.1",
|
||||
"typescript": "^3.8.3"
|
||||
"ts-jest": "^26.4.4",
|
||||
"typescript": "^4.0.5"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue