mirror of
https://github.com/moonrepo/setup-rust.git
synced 2025-04-29 05:20:02 +00:00
Scaffold files.
This commit is contained in:
commit
64b680ddd8
13 changed files with 2835 additions and 0 deletions
6
.eslintignore
Normal file
6
.eslintignore
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
coverage/
|
||||||
|
dist/
|
||||||
|
node_modules/
|
||||||
|
*.min.js
|
||||||
|
*.map
|
||||||
|
*.snap
|
10
.eslintrc.js
Normal file
10
.eslintrc.js
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
/* eslint-disable sort-keys */
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
root: true,
|
||||||
|
extends: ['moon', 'moon/node'],
|
||||||
|
parserOptions: {
|
||||||
|
project: 'tsconfig.json',
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
};
|
16
.github/workflows/ci.yml
vendored
Normal file
16
.github/workflows/ci.yml
vendored
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
name: 'Pipeline'
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
pull_request:
|
||||||
|
jobs:
|
||||||
|
ci:
|
||||||
|
name: 'CI'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
- run: npm install -g pnpm
|
||||||
|
- run: pnpm install
|
||||||
|
- run: pnpm run check
|
18
.github/workflows/publish.yml
vendored
Normal file
18
.github/workflows/publish.yml
vendored
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
name: Publish
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [published, edited]
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.release.tag_name }}
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
- run: npm install -g pnpm
|
||||||
|
- run: pnpm install
|
||||||
|
- run: pnpm run build
|
||||||
|
- uses: JasonEtco/build-and-tag-action@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ github.token }}
|
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
node_modules/
|
||||||
|
dist/
|
28
CHANGELOG.md
Normal file
28
CHANGELOG.md
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
# 1.5.0
|
||||||
|
|
||||||
|
- Support moon v1.
|
||||||
|
- Support `PROTO` env vars.
|
||||||
|
|
||||||
|
# 1.4.0
|
||||||
|
|
||||||
|
- Support moon v0.24 comparison estimate changes.
|
||||||
|
|
||||||
|
# 1.3.0
|
||||||
|
|
||||||
|
- Support new remote caching status.
|
||||||
|
- Use human readable status labels.
|
||||||
|
|
||||||
|
# 1.2.0
|
||||||
|
|
||||||
|
- Added `limit` input setting, that limits the number of actions in the table. Overflow actions will
|
||||||
|
be displayed in an expandable section.
|
||||||
|
- Fixed some issues around duration calculation.
|
||||||
|
|
||||||
|
# 1.1.0
|
||||||
|
|
||||||
|
- Added total time, projected time, and estimated savings/loss information. Requires moon >= 0.15.
|
||||||
|
- Added `slow-threshold` input setting.
|
||||||
|
|
||||||
|
# 1.0.0
|
||||||
|
|
||||||
|
- Initial release.
|
1
README.md
Normal file
1
README.md
Normal file
|
@ -0,0 +1 @@
|
||||||
|
# Setup Rust
|
11
action.yml
Normal file
11
action.yml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
name: 'Setup Rust'
|
||||||
|
author: 'Miles Johnson'
|
||||||
|
description: 'Sets up Rust and Cargo.'
|
||||||
|
inputs: {}
|
||||||
|
outputs: {}
|
||||||
|
runs:
|
||||||
|
using: 'node16'
|
||||||
|
main: 'dist/index.js'
|
||||||
|
branding:
|
||||||
|
icon: 'moon'
|
||||||
|
color: 'purple'
|
1
index.ts
Normal file
1
index.ts
Normal file
|
@ -0,0 +1 @@
|
||||||
|
export {};
|
32
package.json
Normal file
32
package.json
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
{
|
||||||
|
"name": "@moonrepo/setup-rust",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"description": "A GitHub action that for setting up Rust and Cargo.",
|
||||||
|
"main": "dist/index.js",
|
||||||
|
"scripts": {
|
||||||
|
"build": "ncc build ./index.ts",
|
||||||
|
"check": "npm run lint && npm run typecheck",
|
||||||
|
"lint": "eslint --ext .ts,.js --fix .",
|
||||||
|
"typecheck": "tsc --noEmit"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/moonrepo/setup-rust"
|
||||||
|
},
|
||||||
|
"author": "Miles Johnson",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@actions/core": "^1.10.0",
|
||||||
|
"@actions/github": "^5.1.1"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@types/node": "^18.15.10",
|
||||||
|
"@vercel/ncc": "^0.36.1",
|
||||||
|
"eslint": "^8.36.0",
|
||||||
|
"eslint-config-moon": "^2.0.2",
|
||||||
|
"prettier": "^2.8.7",
|
||||||
|
"prettier-config-moon": "^1.1.2",
|
||||||
|
"tsconfig-moon": "^1.3.0",
|
||||||
|
"typescript": "^5.0.2"
|
||||||
|
}
|
||||||
|
}
|
2693
pnpm-lock.yaml
generated
Normal file
2693
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load diff
1
prettier.config.js
Normal file
1
prettier.config.js
Normal file
|
@ -0,0 +1 @@
|
||||||
|
module.exports = 'prettier-config-moon';
|
16
tsconfig.json
Normal file
16
tsconfig.json
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{
|
||||||
|
"extends": "tsconfig-moon/tsconfig.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"allowJs": true,
|
||||||
|
"module": "Node16",
|
||||||
|
"moduleResolution": "NodeNext",
|
||||||
|
"noEmit": true,
|
||||||
|
"verbatimModuleSyntax": false
|
||||||
|
},
|
||||||
|
"include": [
|
||||||
|
".eslintrc.js",
|
||||||
|
"*.js",
|
||||||
|
"*.ts",
|
||||||
|
"tests/*.ts"
|
||||||
|
]
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue