Skip to content
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
33 changes: 0 additions & 33 deletions .eslintrc.json

This file was deleted.

3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* text=auto eol=lf

dist/** -diff linguist-generated=true
16 changes: 9 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: CI

on:
- pull_request
- push
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
Expand All @@ -16,11 +18,11 @@ jobs:
- macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Run
run: |
yarn install
yarn run all
npm ci
npm run all
run:
name: Deploy ${{matrix.ext}} on ${{matrix.os}}
runs-on: ${{matrix.os}}
Expand All @@ -36,9 +38,9 @@ jobs:
- .tar.bz2
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Deploy ${{matrix.ext}}
uses: ./
with:
with:
archiveUrl: https://github.com/Alex079/setup-custom-tool/wiki/sample/content${{matrix.ext}}
archiveGlob: '*'
26 changes: 15 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,14 @@ coverage
# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
# Compiled binary addons
build/Release

# Dependency directories
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo
# Yarn Integrity file
.yarn-integrity

# Optional npm cache directory
.npm
Expand Down Expand Up @@ -95,5 +89,15 @@ typings/
Thumbs.db

# Ignore built ts files
lib
target
target

# Node / npm
npm-debug.log*
.nyc_output

# Coverage
coverage
*.lcov

# Prettier cache
.prettiercache
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
24.4.0
16 changes: 16 additions & 0 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# See: https://prettier.io/docs/en/configuration

printWidth: 80
tabWidth: 2
useTabs: false
semi: false
singleQuote: true
quoteProps: as-needed
jsxSingleQuote: false
trailingComma: none
bracketSpacing: true
bracketSameLine: true
arrowParens: always
proseWrap: always
htmlWhitespaceSensitivity: css
endOfLine: lf
21 changes: 21 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Run action (e2e)",
"program": "${workspaceFolder}/src/index.js",
"env": {
"INPUT_ARCHIVEURL": "https://github.com/Alex079/setup-custom-tool/wiki/sample/content.tar.gz",
"INPUT_ARCHIVEGLOB": "*",
"INPUT_TOOLNAME": "example",
"INPUT_TOOLVERSION": "2017.2.2",
"INPUT_TOOLARCH": "none",
"RUNNER_TEMP": "${workspaceFolder}/target",
"RUNNER_TOOL_CACHE": "${workspaceFolder}/target"
},
"console": "integratedTerminal"
}
]
}
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# Setup custom tool

<a href="https://github.com/Alex079/setup-custom-tool/actions?query=workflow%3ACI"><img src="https://github.com/Alex079/setup-custom-tool/workflows/CI/badge.svg" /></a>
<img src="https://github.com/Alex079/setup-custom-tool/actions/workflows/ci.yml/badge.svg" />
<img src="badges/coverage.svg" alt="Coverage badge" />

This action can download, unpack, and add to PATH a tool of your choice.
The supported archive types are `.tar`, `.zip`, `.7z`, `.xar`.
The unpacked tool can be cached and reused.
Glob expression is used to find folders to add to PATH.
See [Toolkit](https://github.com/actions/toolkit) for more details about github toolkit.
This action can download, unpack, and add to PATH a tool of your choice. The
supported archive types are `.tar`, `.zip`, `.7z`, `.xar`. The unpacked tool can
be cached and reused. Glob expression is used to find folders to add to PATH.
See [Toolkit](https://github.com/actions/toolkit) for more details about github
toolkit.

## Usage

Expand Down Expand Up @@ -34,9 +35,9 @@ jobs:
- macos-latest
steps:
- name: Checkout current repository
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Deploy 'customTool'
uses: Alex079/setup-custom-tool@v2
uses: Alex079/setup-custom-tool@update-template
with:
archiveUrl: <direct download URL of 'customTool' archive>
archiveGlob: '*/bin'
Expand Down
Loading